From 7898ddf6979efbc4fa540c0d344c1c1c892cdda9 Mon Sep 17 00:00:00 2001 From: DerManoMann Date: Mon, 29 Jun 2026 18:29:43 +1200 Subject: [PATCH] Tweak phpstan config to deal with generics type-hint changes in `symfony/type-info:^8.2` --- phpstan-baseline.neon | 6 ++++++ phpstan.neon | 1 + 2 files changed, 7 insertions(+) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 295675c..4d4d643 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,5 +1,11 @@ parameters: ignoreErrors: + - + message: '#^Call to function method_exists\(\) with ''Radebatz\\\\TypeInfoExtras\\\\Type\\\\Type'' and ''objectShape'' will always evaluate to true\.$#' + identifier: function.alreadyNarrowedType + count: 1 + path: src/TypeResolver/StringTypeResolver.php + - message: '#^Instanceof between PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode and PHPStan\\PhpDocParser\\Ast\\Type\\IdentifierTypeNode will always evaluate to true\.$#' identifier: instanceof.alwaysTrue diff --git a/phpstan.neon b/phpstan.neon index 8c51adb..36125b3 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -12,3 +12,4 @@ parameters: excludePaths: - 'tests/Fixtures/*' treatPhpDocTypesAsCertain: false + reportUnmatchedIgnoredErrors: false