From 84276146bb19d34546bea157dc382dc3d8d5f5f0 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Tue, 12 Nov 2024 13:37:50 +0100 Subject: [PATCH 1/2] Use PHPStan 2.0 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index dff1b18..f7d471a 100644 --- a/composer.json +++ b/composer.json @@ -13,13 +13,13 @@ "require-dev": { "editorconfig-checker/editorconfig-checker": "^10.6.0", "ergebnis/composer-normalize": "^2.44.0", - "phpstan/phpstan": "^1.12.7", - "phpstan/phpstan-phpunit": "^1.4.0", - "phpstan/phpstan-strict-rules": "^1.6.1", + "phpstan/phpstan": "^2.0.1", + "phpstan/phpstan-phpunit": "^2.0.0", + "phpstan/phpstan-strict-rules": "^2.0.0", "phpunit/phpunit": "^10.5", "shipmonk/composer-dependency-analyser": "^1.7", "shipmonk/name-collision-detector": "^2.1.1", - "shipmonk/phpstan-rules": "^3.2.1", + "shipmonk/phpstan-rules": "^4.0.0", "slevomat/coding-standard": "^8.15.0" }, "autoload": { @@ -53,7 +53,7 @@ "check:dependencies": "composer-dependency-analyser", "check:ec": "ec src tests", "check:tests": "phpunit tests", - "check:types": "phpstan analyse -vvv", + "check:types": "phpstan analyse -vv", "fix:cs": "phpcbf" } } From c8c8c621223a5488b9c3e962cb02121bc172c1ea Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Tue, 12 Nov 2024 13:53:47 +0100 Subject: [PATCH 2/2] Keep level9 --- phpstan.neon.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a782f1c..64f3e38 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,5 +1,4 @@ includes: - - phar://phpstan.phar/conf/config.levelmax.neon - phar://phpstan.phar/conf/bleedingEdge.neon - ./vendor/phpstan/phpstan-phpunit/extension.neon - ./vendor/phpstan/phpstan-phpunit/rules.neon @@ -7,6 +6,7 @@ includes: - ./vendor/shipmonk/phpstan-rules/rules.neon parameters: + level: 9 paths: - src - tests