From 8f8de348a5bd088bfad7560fe9017336e350693c Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Wed, 22 Nov 2023 20:38:25 +0100 Subject: [PATCH 1/3] Allow Symfony 7 --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 35c8acc..9c6af63 100644 --- a/composer.json +++ b/composer.json @@ -14,9 +14,9 @@ "php": ">=8.1" }, "require-dev": { - "symfony/filesystem": "^6.3", - "symfony/framework-bundle": "^6.3", - "symfony/phpunit-bridge": "^6.3", + "symfony/filesystem": "^6.3|^7.0", + "symfony/framework-bundle": "^6.3|^7.0", + "symfony/phpunit-bridge": "^6.3|^7.0", "phpstan/phpstan": "^1.10.39" }, "autoload": { From 1913c40b61e6d33e45608331fb504300f0d43866 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Wed, 22 Nov 2023 21:04:45 +0100 Subject: [PATCH 2/3] Ignore PHPStan deprecations --- tests/deprecations-ignored | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/deprecations-ignored b/tests/deprecations-ignored index bb4211e..fcd5431 100644 --- a/tests/deprecations-ignored +++ b/tests/deprecations-ignored @@ -1,3 +1,4 @@ +%_PHPStan_993c0a2e7% %_PHPStan_d5c599c96% %^Method "PhpParser\\NodeVisitor\:\:leaveNode\(\)" might add "int\|Node\|array\|null" as a native return type declaration in the future\. Do the same in implementation "PHPStan\\BetterReflection\\SourceLocator\\SourceStubber\\PhpStormStubs\\CachingVisitor" now to avoid errors or add an explicit @return annotation to suppress this message\.$% %^Method "PhpParser\\NodeVisitor\:\:enterNode\(\)" might add "int\|Node\|null" as a native return type declaration in the future\. Do the same in implementation "PhpParser\\NodeVisitorAbstract@anonymous" now to avoid errors or add an explicit @return annotation to suppress this message\.$% From 380d768d602ca097ab14b587f3911f23c83ed5d7 Mon Sep 17 00:00:00 2001 From: bocharsky-bw Date: Wed, 22 Nov 2023 21:15:37 +0100 Subject: [PATCH 3/3] Set minimum-stability to dev --- composer.json | 1 + tests/deprecations-ignored | 1 + 2 files changed, 2 insertions(+) diff --git a/composer.json b/composer.json index 9c6af63..79ff874 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,7 @@ "symfony/phpunit-bridge": "^6.3|^7.0", "phpstan/phpstan": "^1.10.39" }, + "minimum-stability": "dev", "autoload": { "psr-4": { "Symfonycasts\\MicroMapper\\": "src" diff --git a/tests/deprecations-ignored b/tests/deprecations-ignored index fcd5431..b640e06 100644 --- a/tests/deprecations-ignored +++ b/tests/deprecations-ignored @@ -1,3 +1,4 @@ +%_PHPStan_3a5328b15% %_PHPStan_993c0a2e7% %_PHPStan_d5c599c96% %^Method "PhpParser\\NodeVisitor\:\:leaveNode\(\)" might add "int\|Node\|array\|null" as a native return type declaration in the future\. Do the same in implementation "PHPStan\\BetterReflection\\SourceLocator\\SourceStubber\\PhpStormStubs\\CachingVisitor" now to avoid errors or add an explicit @return annotation to suppress this message\.$%