From b44ab838b0555483dbffb5c36c95ffcec2aa073e Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Mon, 29 Oct 2018 09:49:59 +0100 Subject: [PATCH] Parametrize PHPStan build in config file --- composer.json | 2 +- phpstan.neon | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 454fb7a6..310d9209 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ } }, "scripts": { - "phpstan": "vendor/bin/phpstan analyse src test --level 7 -c phpstan.neon", + "phpstan": "vendor/bin/phpstan analyse", "cs-check": "vendor/bin/php-cs-fixer fix --verbose --diff --dry-run", "cs-fix": "vendor/bin/php-cs-fixer fix --verbose --diff" }, diff --git a/phpstan.neon b/phpstan.neon index 6895855a..3d861b27 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,4 +1,8 @@ parameters: + level: 7 + paths: + - src/ + - test/ ignoreErrors: - '/Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent/' - '/Call to an undefined method Symfony\\Component\\Console\\Event\\ConsoleEvent::getExitCode\(\)\./'