File tree Expand file tree Collapse file tree 2 files changed +28
-15
lines changed
Expand file tree Collapse file tree 2 files changed +28
-15
lines changed Original file line number Diff line number Diff line change 88 },
99 "require-dev" : {
1010 "phpstan/extension-installer" : " ^1.3" ,
11- "phpstan/phpstan" : " ^1.10" ,
12- "phpstan/phpstan-webmozart-assert" : " ^1.2" ,
11+ "phpstan/phpstan" : " ^2.0" ,
1312 "phpunit/phpunit" : " ^10.5" ,
14- "rector/rector-src" : " dev-main" ,
15- "rector/type-perfect" : " ^1.0" ,
13+ "rector/rector-src" : " dev-upgrade-to-php-parser5-and-phpstan-2" ,
1614 "symplify/easy-coding-standard" : " ^12.3" ,
17- "symplify/phpstan-extensions" : " ^11.4" ,
18- "symplify/phpstan-rules" : " ^13.0" ,
1915 "symplify/rule-doc-generator" : " ^12.2" ,
2016 "symplify/vendor-patches" : " ^11.3" ,
2117 "tomasvotruba/class-leak" : " ^1.0" ,
3329 "classmap" : [" stubs" ]
3430 },
3531 "scripts" : {
36- "phpstan" : " vendor/bin/phpstan analyse --ansi --error-format symplify " ,
32+ "phpstan" : " vendor/bin/phpstan analyse --ansi" ,
3733 "check-cs" : " vendor/bin/ecs check --ansi" ,
3834 "fix-cs" : " vendor/bin/ecs check --fix --ansi"
3935 },
Original file line number Diff line number Diff line change 1- includes :
2- - vendor/symplify/phpstan-rules/config/symplify-rules.neon
3- - vendor/symplify/phpstan-rules/config/rector-rules.neon
1+ # to be enabled later once rector upgraded to use phpstan v2
2+ # includes:
3+ # - vendor/symplify/phpstan-rules/config/symplify-rules.neon
4+ # - vendor/symplify/phpstan-rules/config/rector-rules.neon
45
56parameters :
67 level : 8
@@ -10,6 +11,8 @@ parameters:
1011 # requires exact closure types
1112 checkMissingCallableSignature : true
1213
14+ treatPhpDocTypesAsCertain : false
15+
1316 paths :
1417 - src
1518 - config
@@ -24,11 +27,12 @@ parameters:
2427 - '*/Source/*'
2528
2629 # see https://github.com/rectorphp/type-perfect/
27- type_perfect :
28- no_mixed : true
29- null_over_false : true
30- narrow_param : true
31- narrow_return : true
30+ # to be enabled later once rector upgraded to use phpstan v2
31+ # type_perfect:
32+ # no_mixed: true
33+ # null_over_false: true
34+ # narrow_param: true
35+ # narrow_return: true
3236
3337 ignoreErrors :
3438 # php enum value minus
@@ -55,3 +59,16 @@ parameters:
5559 message : ' #Parameter \#1 \$attributeClass of class Rector\\DowngradePhp80\\ValueObject\\DowngradeAttributeToAnnotation constructor expects class\-string, string given#'
5660 path : " config/*"
5761
62+ # more advanced usage, but not always working
63+ # see https://github.com/rectorphp/rector-src/actions/runs/11798721617/job/32865546672?pr=6422#step:5:110
64+ - ' #Doing instanceof PHPStan\\Type\\.+ is error\-prone and deprecated #'
65+
66+ # follow parent signature
67+ -
68+ identifier : return.unusedType
69+
70+ # phpstan instanceof
71+ -
72+ identifier : phpstanApi.instanceofAssumption
73+
74+ - ' #Asking about instanceof PHPStan\\.* is not covered by backward compatibility promise #'
You can’t perform that action at this time.
0 commit comments