Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flysystem usage after upgrade #170

Merged
merged 3 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
fail-fast: false
matrix:
operating-system: [ ubuntu-latest ]
php-version: [ '7.4', '8.0', '8.1' ]
php-version: [ '8.1', '8.2', '8.3' ]
include:
- php-version: '8.1'
- php-version: '8.3'
coverage: true

steps:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/tao-core" : ">=54.0.0",
"oat-sa/generis" : ">=15.22",
"oat-sa/generis" : "dev-feat/REL-1723/update-flysystem-lib as 16.0.0",
"oat-sa/extension-tao-testqti" : ">=41.0.0",
"oat-sa/extension-tao-itemqti-pci" : ">=7.0.0",
"oat-sa/extension-tao-mediamanager" : ">=12.0.0"
Expand Down
4 changes: 2 additions & 2 deletions scripts/tool/FixTextReaderDefaultValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace oat\pciSamples\scripts\tool;

use League\Flysystem\Adapter\Local;
use League\Flysystem\Local\LocalFilesystemAdapter;
use oat\oatbox\action\Action;
use oat\pciSamples\model\update\ItemFixTextReaderDefaultValue;

Expand All @@ -26,7 +26,7 @@ public function __invoke($params)

// maybe it's a dirty way but it's quicker. too much modification would have been required in ItemUpdater
$adapter = $dir->getFileSystem()->getAdapter();
if (!$adapter instanceof Local) {
if (!$adapter instanceof LocalFilesystemAdapter) {
throw new \Exception(__CLASS__ . ' can only handle local files');
}

Expand Down
Loading