Skip to content

Commit

Permalink
Upgrade PHPStan to v2.0 (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored Nov 11, 2024
1 parent c1cd2aa commit 51c7383
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
- '~^(.+(?<!\w)Atk4\\Ui\\App(?!\w).+|Call to an undefined method .+::(issetApp|getApp)\(\)\.)$~'

-
Expand Down Expand Up @@ -42,7 +42,7 @@ parameters:
-
path: 'src/Phpunit/TestCase.php'
identifier: method.nonObject
message: '~^Cannot call method (className|methodName)\(\) on array<int, string>\|PHPUnit\\Metadata\\Metadata\.$~'
message: '~^Cannot call method (className|methodName)\(\) on list<string>\|PHPUnit\\Metadata\\Metadata\.$~'
count: 2
-
path: 'tests/HookTraitTest.php'
Expand Down

0 comments on commit 51c7383

Please sign in to comment.