From 6c27a3ad011dea59651f20ceb97f17eb831888b8 Mon Sep 17 00:00:00 2001 From: Yozhef Hisem Date: Fri, 13 Jan 2023 12:40:55 +0200 Subject: [PATCH] update composer --- composer.json | 4 ++-- phpstan.neon | 6 ++++++ phpstan.neon.dist | 8 -------- 3 files changed, 8 insertions(+), 10 deletions(-) create mode 100644 phpstan.neon delete mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index bb498a0..0368a4f 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "macpaw/similar-arrays": "^1.0" }, "require-dev": { - "phpstan/phpstan": "^0.12", + "phpstan/phpstan": "^1.9", "phpunit/phpunit": "^9.3", "slevomat/coding-standard": "^7.0", "squizlabs/php_codesniffer": "^3.6" @@ -52,7 +52,7 @@ }, "scripts": { "composer-validate": "composer validate", - "phpstan": "./vendor/bin/phpstan analyse -l max", + "phpstan": "./vendor/bin/phpstan analyse", "code-style": "./vendor/bin/phpcs", "code-style-fix": "./vendor/bin/phpcbf", "phpunit": "./vendor/bin/phpunit", diff --git a/phpstan.neon b/phpstan.neon new file mode 100644 index 0000000..22368e9 --- /dev/null +++ b/phpstan.neon @@ -0,0 +1,6 @@ +parameters: + excludes_analyse: + paths: + - src + level: 5 + treatPhpDocTypesAsCertain: false diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index 657c85a..0000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,8 +0,0 @@ -parameters: - excludes_analyse: - paths: - - src - level: 8 - treatPhpDocTypesAsCertain: false - ignoreErrors: - - '#Parameter \#1 \$value of function count expects array|Countable, iterable given.*#'