From 34e16031f754871f84e883c447a978551cf66b81 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 23 Feb 2020 18:57:56 +0100 Subject: [PATCH] added phpstan.neon --- composer.json | 2 +- tests/phpstan.neon | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tests/phpstan.neon diff --git a/composer.json b/composer.json index df3904654..c0947cbe5 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "classmap": ["src/"] }, "scripts": { - "phpstan": "phpstan analyse --autoload-file vendor/autoload.php --level 5 src", + "phpstan": "phpstan analyse --autoload-file vendor/autoload.php --level 5 --configuration tests/phpstan.neon src", "tester": "tester tests -s" }, "extra": { diff --git a/tests/phpstan.neon b/tests/phpstan.neon new file mode 100644 index 000000000..edf5045b3 --- /dev/null +++ b/tests/phpstan.neon @@ -0,0 +1,4 @@ +parameters: + ignoreErrors: + # The namespace is referenced, not the class. + - '#Class dibi referenced with incorrect case: Dibi#'