From 476151acffeb928e103d75140d7c86ccb74ddcc5 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 21 Nov 2024 04:06:33 +0700 Subject: [PATCH 1/2] Bump to PHPStan 2.0 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 25c8020..d5bf3be 100644 --- a/composer.json +++ b/composer.json @@ -27,8 +27,8 @@ }, "require-dev": { "laminas/laminas-coding-standard": "^2.4", - "phpstan/phpstan": "^1.9", - "phpstan/phpstan-webmozart-assert": "^1.2", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^10.0", "rector/rector": "dev-main" }, From c45927f714cff1a341beb0316ddc1717a5b6a65e Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 21 Nov 2024 04:08:10 +0700 Subject: [PATCH 2/2] fix --- phpstan.neon | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index ab69410..3d73dac 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,2 +1,5 @@ includes: - - vendor/phpstan/phpstan-webmozart-assert/extension.neon \ No newline at end of file + - vendor/phpstan/phpstan-webmozart-assert/extension.neon + +parameters: + treatPhpDocTypesAsCertain: false