From b38c296a061b80196272b9bed0be47900303aeb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Tue, 21 May 2024 16:26:40 +0200 Subject: [PATCH] Upgrade to PHPStan 1.11.1 Some messages change slightly, and one error disappears. --- composer.json | 2 +- phpstan-baseline.neon | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index db9f82e5..6af7a1ea 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ }, "require-dev": { "composer/package-versions-deprecated": "^1.11", - "phpstan/phpstan": "1.9.4", + "phpstan/phpstan": "1.11.1", "phpstan/phpstan-phpunit": "^1", "phpstan/phpstan-strict-rules": "^1.1", "doctrine/coding-standard": "^11", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index c838cdd0..fed7f899 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -15,11 +15,6 @@ parameters: count: 1 path: src/Persistence/Reflection/EnumReflectionProperty.php - - - message: "#^Method Doctrine\\\\Persistence\\\\Reflection\\\\EnumReflectionProperty\\:\\:getType\\(\\) should return ReflectionNamedType\\|ReflectionUnionType\\|null but returns ReflectionType\\|null\\.$#" - count: 1 - path: src/Persistence/Reflection/EnumReflectionProperty.php - - message: "#^Method Doctrine\\\\Persistence\\\\Reflection\\\\EnumReflectionProperty\\:\\:toEnum\\(\\) should return array\\\\|BackedEnum but returns array\\\\.$#" count: 1 @@ -46,17 +41,17 @@ parameters: path: tests/Persistence/Mapping/DriverChainTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{'Foo\\\\\\\\Bar\\\\\\\\subDirClass', 'Foo\\\\\\\\global', 'Foo\\\\\\\\stdClass'\\} and array\\ will always evaluate to false\\.$#" + message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{'Foo\\\\\\\\stdClass', 'Foo\\\\\\\\sub\\\\\\\\subClass', 'Foo\\\\\\\\sub\\\\\\\\subsub…'\\} and array\\ will always evaluate to false\\.$#" count: 1 path: tests/Persistence/Mapping/SymfonyFileLocatorTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{'Foo\\\\\\\\Bar\\\\\\\\subDirClass', 'Foo\\\\\\\\stdClass'\\} and array\\ will always evaluate to false\\.$#" + message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with non\\-empty\\-array\\ and array\\ will always evaluate to false\\.$#" count: 1 path: tests/Persistence/Mapping/SymfonyFileLocatorTest.php - - message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with array\\{'Foo\\\\\\\\stdClass', 'Foo\\\\\\\\sub\\\\\\\\subClass', 'Foo\\\\\\\\sub\\\\\\\\subsub…'\\} and array\\ will always evaluate to false\\.$#" + message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertSame\\(\\) with non\\-empty\\-array\\ and array\\ will always evaluate to false\\.$#" count: 1 path: tests/Persistence/Mapping/SymfonyFileLocatorTest.php