From 32423111a8554e3a794d5df4222aa3d71f79ae90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Fri, 8 Dec 2023 22:39:22 +0100 Subject: [PATCH] Adapt ignore error message Looks like the "of object" part is no longer mentioned in recent PHPStan versions. --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 99ea416..d501eaf 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -12,7 +12,7 @@ parameters: ignoreErrors: # PHPStan is unable to infer the return type of unserialize() in this case. - - message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T of object but returns Closure\(\): mixed\.#' + message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T but returns Closure\(\): mixed\.#' path: 'src/Doctrine/Instantiator/Instantiator.php' # dynamic properties confuse static analysis