diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index deaa2c6..991b7ec 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -21,6 +21,7 @@ jobs: fail-fast: true matrix: php: + - "8.2" - "8.3" - "8.4" symfony: diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 7ff9e25..b2ead25 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -28,7 +28,7 @@ ), )); -$config = new FidryConfig($header, 83_000); +$config = new FidryConfig($header, 82_000); $config->addRules([ // TODO: see if this rule can be removed once bumping to Symfony 7+ 'no_superfluous_phpdoc_tags' => false, diff --git a/composer.json b/composer.json index 4b62211..7d9c8b7 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ } ], "require": { - "php": "^8.3", + "php": "^8.2", "symfony/filesystem": "^6.4 || ^7.0", "symfony/finder": "^6.4 || ^7.0" }, @@ -21,7 +21,7 @@ "bamarni/composer-bin-plugin": "^1.4", "ergebnis/composer-normalize": "^2.28", "infection/infection": ">=0.26", - "phpunit/phpunit": "^12" + "phpunit/phpunit": "^11 || ^12" }, "prefer-stable": true, "autoload": { diff --git a/tests/FSImplementationTest.php b/tests/FSImplementationTest.php index acff470..18b07d7 100644 --- a/tests/FSImplementationTest.php +++ b/tests/FSImplementationTest.php @@ -52,11 +52,11 @@ #[CoversNothing] final class FSImplementationTest extends TestCase { - private const array NON_SYNCHRONIZED_FILESYSTEM_METHOD_NAMES = [ + private const NON_SYNCHRONIZED_FILESYSTEM_METHOD_NAMES = [ 'createFinder', ]; - private const array NON_SYNCHRONIZED_FS_METHOD_NAMES = [ + private const NON_SYNCHRONIZED_FS_METHOD_NAMES = [ 'getInstance', 'setInstance', ]; diff --git a/tests/Finder/SplFileInfoFactoryTest.php b/tests/Finder/SplFileInfoFactoryTest.php index e05013d..4e4684a 100644 --- a/tests/Finder/SplFileInfoFactoryTest.php +++ b/tests/Finder/SplFileInfoFactoryTest.php @@ -53,7 +53,7 @@ #[CoversClass(SplFileInfoFactory::class)] final class SplFileInfoFactoryTest extends TestCase { - public const string FIXTURE_DIR = __DIR__.'/Fixtures'; + public const FIXTURE_DIR = __DIR__.'/Fixtures'; #[DataProvider('fromPathProvider')] public function test_it_can_create_a_file_info_from_a_path(