Skip to content

Commit

Permalink
Merge pull request #170 from oat-sa/feat/REL-1723/update-flysystem
Browse files Browse the repository at this point in the history
Update flysystem usage after upgrade
  • Loading branch information
augustas authored Nov 28, 2024
2 parents d3a00d0 + cfc58e7 commit 254634a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"minimum-stability" : "dev",
"require": {
"oat-sa/oatbox-extension-installer": "~1.1||dev-master",
"oat-sa/tao-core" : ">=54.0.0",
"oat-sa/generis" : ">=15.22",
"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"
"oat-sa/tao-core": ">=54.26.0",
"oat-sa/generis": ">=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"
},
"autoload" : {
"psr-4" : {
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

0 comments on commit 254634a

Please sign in to comment.