From bfce16ecf4d5c82128dd4cb71a016d21196b2036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 31 Jul 2026 11:11:28 +0200 Subject: [PATCH] Fix stale PHPStan baseline counts for LocationServiceTest.php assertInstanceOf ignores The "already narrowed type" ignore counts for two assertInstanceOf(Location::class, ...) patterns in this file (10 and 2) no longer match what PHPStan actually finds (9 and 1) against currently resolved dependencies, since this project doesn't commit a composer.lock and PHPStan's/its dependencies' analysis has drifted slightly over time. This currently fails "composer run-script phpstan" (and therefore CI) on every branch based on 4.6. --- phpstan-baseline.neon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 15cd76ff78..fbfa0a2475 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -41122,7 +41122,7 @@ parameters: - message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location'' and Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location will always evaluate to true\.$#' identifier: method.alreadyNarrowedType - count: 10 + count: 9 path: tests/integration/Core/Repository/LocationServiceTest.php - @@ -41152,7 +41152,7 @@ parameters: - message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location'' and Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location will always evaluate to true\.$#' identifier: staticMethod.alreadyNarrowedType - count: 2 + count: 1 path: tests/integration/Core/Repository/LocationServiceTest.php -