Skip to content

Commit 5784a7c

Browse files
committed
Add implemented and to-be-implemented PHPStan rules
1 parent 0c45325 commit 5784a7c

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

phpstan.neon.dist

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,24 @@ parameters:
2121
identifier: staticMethod.dynamicCall
2222
path: tests
2323

24+
editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
25+
26+
exceptions:
27+
checkedExceptionRegexes:
28+
- '#^Kreait\\Firebase\\#'
29+
check:
30+
# missingCheckedExceptionInThrows: true
31+
# tooWideThrowType: true
32+
2433
checkBenevolentUnionTypes: true
34+
# checkMissingCallableSignature: true
35+
# checkMissingOverrideMethodAttribute: true
2536
checkTooWideReturnTypesInProtectedAndPublicMethods: true
2637
checkUninitializedProperties: true
2738
reportAlwaysTrueInLastCondition: true
2839
reportPossiblyNonexistentConstantArrayOffset: true
29-
40+
# reportPossiblyNonexistentGeneralArrayOffset: true
41+
reportAnyTypeWideningInVarTag: true
3042
includes:
3143
- vendor/cuyz/valinor/qa/PHPStan/valinor-phpstan-configuration.php
3244
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

0 commit comments

Comments
 (0)