From 69af85241a805bb16a9127e639458b5610b6c1fd Mon Sep 17 00:00:00 2001 From: David Grudl Date: Thu, 29 Oct 2020 01:44:20 +0100 Subject: [PATCH] updated phpstan --- composer.json | 2 +- phpstan.neon | 11 +++++++++++ tests/phpstan.neon | 5 ----- 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 phpstan.neon delete mode 100644 tests/phpstan.neon diff --git a/composer.json b/composer.json index 20eca2773..1f9108f8e 100644 --- a/composer.json +++ b/composer.json @@ -36,7 +36,7 @@ }, "minimum-stability": "dev", "scripts": { - "phpstan": "phpstan analyse --level 5 --configuration tests/phpstan.neon src", + "phpstan": "phpstan analyse", "tester": "tester tests -s" }, "extra": { diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 000000000..fcfc2a627 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,11 @@ +parameters: + level: 5 + + paths: + - src + + treatPhpDocTypesAsCertain: false + + +includes: + - vendor/phpstan/phpstan-nette/extension.neon diff --git a/tests/phpstan.neon b/tests/phpstan.neon deleted file mode 100644 index 1b188579d..000000000 --- a/tests/phpstan.neon +++ /dev/null @@ -1,5 +0,0 @@ -includes: - - ../vendor/phpstan/phpstan-nette/extension.neon - -parameters: - treatPhpDocTypesAsCertain: false