From 51c738332479773ab2aae615aa0b07cf289354ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 11 Nov 2024 21:17:47 +0100 Subject: [PATCH] Upgrade PHPStan to v2.0 (#416) --- composer.json | 6 +++--- phpstan.neon.dist | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 05f1dfdc..7a285b46 100644 --- a/composer.json +++ b/composer.json @@ -44,9 +44,9 @@ "ergebnis/phpunit-slow-test-detector": "^2.9", "friendsofphp/php-cs-fixer": "^3.0", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.11", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-strict-rules": "^1.3", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", "phpunit/phpunit": "^9.5.5 || ^10.0 || ^11.0" }, "minimum-stability": "dev", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index a06c9d71..d89b3376 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -14,7 +14,7 @@ parameters: - '~^Only booleans are allowed in .+, .+ given( on the (left|right) side)?\.$~' - '~^Variable (static )?(property access|method call) on .+\.$~' - # fix unresolveable atk4/ui \Atk4\Ui\App class + # fix unresolvable atk4/ui \Atk4\Ui\App class - '~^(.+(?\|PHPUnit\\Metadata\\Metadata\.$~' + message: '~^Cannot call method (className|methodName)\(\) on list\|PHPUnit\\Metadata\\Metadata\.$~' count: 2 - path: 'tests/HookTraitTest.php'