From 7be271d955fe691e63cab298ba928210f818d378 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Thu, 6 Mar 2025 22:03:00 +0800 Subject: [PATCH] Supports PHPStan 2 (#1006) * Supports PHPStan 2 Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki --------- Signed-off-by: Mior Muhammad Zaki --- composer.json | 6 +++--- phpstan.neon.dist | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index ef5ed496d..8f8cdfb95 100644 --- a/composer.json +++ b/composer.json @@ -32,10 +32,10 @@ "mockery/mockery": "^1.5.1", "nunomaduro/collision": "^6.4.0|^7.5.2|^8.0", "orchestra/testbench": "^8.21|^9.0|^10.0", - "phpstan/phpstan": "^1.10.15", + "phpstan/phpstan": "^2.1.7", "phpunit/phpunit": "^10.4|^11.5", - "spiral/roadrunner-http": "^3.3.0", - "spiral/roadrunner-cli": "^2.6.0" + "spiral/roadrunner-cli": "^2.6.0", + "spiral/roadrunner-http": "^3.3.0" }, "bin": [ "bin/roadrunner-worker", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f4bf4fbbb..05b15d688 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -9,4 +9,6 @@ parameters: ignoreErrors: - "#Unsafe usage of new static\\(\\)#" - "#\\(void\\) is used.#" - - "#Function Swoole\\\\Coroutine\\\\run not found.#" + - "#Instantiated class Swoole\\Coroutine\\WaitGroup not found.#" + + reportUnmatchedIgnoredErrors: false