Skip to content

Commit 98d7620

Browse files
committed
Upgrade to phpstan 2
1 parent 3d37635 commit 98d7620

File tree

2 files changed

+6
-17
lines changed

2 files changed

+6
-17
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"doctrine/orm": "^3.2",
4545
"jmikola/geojson": "^1.0",
4646
"phpbench/phpbench": "^1.0.0",
47-
"phpstan/phpstan": "^1.12",
48-
"phpstan/phpstan-deprecation-rules": "^1.2",
49-
"phpstan/phpstan-phpunit": "^1.0",
47+
"phpstan/phpstan": "^2.1",
48+
"phpstan/phpstan-deprecation-rules": "^2.0",
49+
"phpstan/phpstan-phpunit": "^2.0",
5050
"phpunit/phpunit": "^10.4",
5151
"squizlabs/php_codesniffer": "^3.5",
5252
"symfony/cache": "^5.4 || ^6.0 || ^7.0"

phpstan.neon.dist

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,16 @@ parameters:
2525
# To be removed when reaching phpstan level 6
2626
checkMissingVarTagTypehint: true
2727
checkMissingTypehints: true
28-
checkMissingIterableValueType: true
28+
#checkMissingIterableValueType: true
2929

3030
# Disabled due to inconsistent errors upon encountering psalm types
3131
reportUnmatchedIgnoredErrors: false
3232

3333
# To be removed when reaching phpstan level 6
34-
services:
35-
- class: PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
36-
arguments:
37-
paramOut: %featureToggles.paramOutType%
38-
tags:
39-
- phpstan.rules.rule
40-
41-
- class: PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
42-
arguments:
43-
paramOut: %featureToggles.paramOutType%
44-
tags:
45-
- phpstan.rules.rule
46-
4734
rules:
4835
- PHPStan\Rules\Constants\MissingClassConstantTypehintRule
36+
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
4937
- PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule
38+
- PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule
5039
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
5140
- PHPStan\Rules\Properties\MissingPropertyTypehintRule

0 commit comments

Comments
 (0)