Skip to content

Commit 944d521

Browse files
committed
Add implemented and to-be-implemented PHPStan rules
1 parent 24ace0f commit 944d521

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

phpstan.neon.dist

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,23 @@ 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
2535
checkTooWideReturnTypesInProtectedAndPublicMethods: true
2636
checkUninitializedProperties: true
2737
reportAlwaysTrueInLastCondition: true
2838
reportPossiblyNonexistentConstantArrayOffset: true
29-
39+
# reportPossiblyNonexistentGeneralArrayOffset: true
40+
reportAnyTypeWideningInVarTag: true
3041
includes:
3142
- vendor/cuyz/valinor/qa/PHPStan/valinor-phpstan-configuration.php
3243
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

0 commit comments

Comments
 (0)