From 679dc9408273873490e394ca0b4dc803cbc5cd78 Mon Sep 17 00:00:00 2001 From: piotrleo Date: Mon, 22 Nov 2021 08:33:21 +0100 Subject: [PATCH 1/3] excludes_analyse is deprecated, excludePaths is correct --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 23e8df6..6f0f7c6 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -4,7 +4,7 @@ parameters: checkMissingIterableValueType: false checkGenericClassInNonGenericObjectType: false - excludes_analyse: + excludePaths: # Makes PHPStan crash - 'src/DependencyInjection/Configuration.php' From 9a95b66b011236fcff23da802b51fbe232f3da79 Mon Sep 17 00:00:00 2001 From: piotrleo Date: Mon, 22 Nov 2021 09:28:48 +0100 Subject: [PATCH 2/3] Relative paths fix --- phpstan.neon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index 6f0f7c6..b0d6115 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -6,13 +6,13 @@ parameters: excludePaths: # Makes PHPStan crash - - 'src/DependencyInjection/Configuration.php' + - '../../../src/DependencyInjection/Configuration.php' # Test dependencies - - 'tests/Application/app/**.php' - - 'tests/Application/src/**.php' + - '../../../tests/Application/app/**.php' + - '../../../tests/Application/src/**.php' # ECS Fixer dependency - - 'src/Fixer' + - '../../../src/Fixer' ignoreErrors: - '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./' From 2bdf8e5d5ba32683a74218fb6db33abb1468003b Mon Sep 17 00:00:00 2001 From: piotrleo Date: Mon, 22 Nov 2021 09:32:12 +0100 Subject: [PATCH 3/3] src/Fixer is not in root dir. Removed ../../../ --- phpstan.neon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index b0d6115..06db65d 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,6 +13,6 @@ parameters: - '../../../tests/Application/src/**.php' # ECS Fixer dependency - - '../../../src/Fixer' + - 'src/Fixer' ignoreErrors: - '/Parameter #1 \$configuration of method Symfony\\Component\\DependencyInjection\\Extension\\Extension::processConfiguration\(\) expects Symfony\\Component\\Config\\Definition\\ConfigurationInterface, Symfony\\Component\\Config\\Definition\\ConfigurationInterface\|null given\./'