From 95da6fb313689e7bac9569d3df14250a5c549f78 Mon Sep 17 00:00:00 2001 From: Jeroen Thora Date: Mon, 11 Nov 2024 14:11:45 +0100 Subject: [PATCH] [AllBundles] Upgrade phpstan to 2.0 --- composer.json | 4 ++-- phpstan.neon | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 54f95bd2c5..bb450d240e 100644 --- a/composer.json +++ b/composer.json @@ -88,8 +88,8 @@ "matthiasnoback/symfony-dependency-injection-test": "^4.2.1", "symfony/phpunit-bridge": "^7.0", "phpunit/phpunit": "^9.5.5", - "phpstan/phpstan": "^1.1", - "phpstan/phpstan-doctrine": "^1.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-doctrine": "^2.0", "php-cs-fixer/shim": "^3.11" }, "replace": { diff --git a/phpstan.neon b/phpstan.neon index 7f10903149..4ff99c0863 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -17,12 +17,6 @@ parameters: - src/Kunstmaan/CacheBundle # Temporary excluded for full rework - src/Kunstmaan/FixturesBundle # Temporary excluded for full rework # Excluded deprecated classes/files - - src/Kunstmaan/AdminBundle/Composer/ScriptHandler.php - - src/Kunstmaan/AdminBundle/EventListener/ConsoleExceptionListener.php - - src/Kunstmaan/GeneratorBundle/Helper/Sf4AppBundle.php # BC layer - - src/Kunstmaan/TranslatorBundle/Command/MigrationsDiffCommand.php - - src/Kunstmaan/TranslatorBundle/Service/Command/DiffCommand.php - - src/Kunstmaan/*/Event/*.php # Ignore the event classes until we get rid of the BC layer. The BC layer causes a weird phpstan error. - src/Kunstmaan/GeneratorBundle/Helper/Sf4AppBundle.php # BC layer ignoreErrors: