From 05b658b41df0da7743522caff51281964830635e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 9 Nov 2025 22:19:51 +0100 Subject: [PATCH 1/3] feat: Add support for PHP 8.2 This is needed for Infection. --- .github/workflows/tests.yaml | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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/composer.json b/composer.json index 4b62211..0a7531f 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" }, From 2f0ccdb0459bb7d0b873dbe47fd550904254c15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 9 Nov 2025 22:21:13 +0100 Subject: [PATCH 2/3] fix phpunit constraint --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0a7531f..7d9c8b7 100644 --- a/composer.json +++ b/composer.json @@ -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": { From 5bdfea8a1b8e16406cc101f24a618d99b14c3545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 9 Nov 2025 22:46:39 +0100 Subject: [PATCH 3/3] fix --- .php-cs-fixer.php | 2 +- tests/FSImplementationTest.php | 4 ++-- tests/Finder/SplFileInfoFactoryTest.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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/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(