From e4ae3bed1bf586da2b65120144f1e847aded5586 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 29 Jul 2023 18:17:58 +0200 Subject: [PATCH 1/2] Add psalm.xml to .gitattributes --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 0240640..b39bf1e 100644 --- a/.gitattributes +++ b/.gitattributes @@ -7,4 +7,5 @@ phpcs.xml.dist export-ignore phpmd.xml.dist export-ignore phpstan.neon.dist export-ignore phpunit.xml.dist export-ignore +psalm.xml export-ignore composer.lock export-ignore From 3cd50a47344c189390c43dd3669873f235fad6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sat, 29 Jul 2023 18:20:40 +0200 Subject: [PATCH 2/2] Adapt ignore rule to new version of PHPStan --- 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