From 8924f3e03c11d52f464b9ecdc9b6d7dc89e622d3 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Mon, 6 Nov 2017 11:40:43 +0100 Subject: [PATCH] phpstan lvl 0 --- composer.json | 3 ++- .../tests/DocBlock/DocBlockFactoryTest.php | 3 ++- phpstan.neon | 12 ++++++++++++ .../Normalizer/RectorClassNormalizerTest.php | 2 +- .../Validator/RectorClassValidatorTest.php | 3 +++ 5 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 phpstan.neon diff --git a/composer.json b/composer.json index cae1d62388f..7e5be597d6b 100644 --- a/composer.json +++ b/composer.json @@ -48,6 +48,7 @@ "Rector\\BetterReflection\\Tests\\": "packages/BetterReflection/tests", "Rector\\ReflectionDocBlock\\Tests\\": "packages/ReflectionDocBlock/tests", "Rector\\NodeTypeResolver\\Tests\\": "packages/NodeTypeResolver/tests", + "Rector\\NodeTraverserQueue\\Tests\\": "packages/NodeTraverserQueue/tests", "Rector\\DeprecationExtractor\\Tests\\": "packages/DeprecationExtractor/tests", "Rector\\NodeValueResolver\\Tests\\": "packages/NodeValueResolver/tests" } @@ -56,7 +57,7 @@ "all": ["@check-cs", "phpunit"], "check-cs": "ecs check bin packages src tests", "fix-cs": "ecs check bin packages src tests --fix", - "phpstan": "vendor/bin/phpstan.phar analyse packages src tests --level 0" + "phpstan": "vendor/bin/phpstan.phar analyse packages src tests --level 0 --configuration phpstan.neon" }, "bin": [ "bin/rector", diff --git a/packages/ReflectionDocBlock/tests/DocBlock/DocBlockFactoryTest.php b/packages/ReflectionDocBlock/tests/DocBlock/DocBlockFactoryTest.php index eb0fb34db77..89a76fef923 100644 --- a/packages/ReflectionDocBlock/tests/DocBlock/DocBlockFactoryTest.php +++ b/packages/ReflectionDocBlock/tests/DocBlock/DocBlockFactoryTest.php @@ -1,9 +1,10 @@