-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
32 lines (32 loc) · 999 Bytes
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use level=10 with the strictest rules we can find
#
# primarily used for this (AwesomeProjectConfigs) repository
#
parameters:
level: 10
bootstrapFiles:
- vendor/autoload.php
paths:
- .github
- cli
- src
- tests
polluteScopeWithLoopInitialAssignments: false
polluteScopeWithAlwaysIterableForeach: false
polluteScopeWithBlock: false
checkExplicitMixedMissingReturn: true
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
reportMaybesInMethodSignatures: true
reportMaybesInPropertyPhpDocTypes: true
reportStaticMethodSignatures: true
checkDynamicProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkUninitializedProperties: true
rememberPossiblyImpureFunctionValues: true
checkImplicitMixed: true
checkBenevolentUnionTypes: true
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true