-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
37 lines (32 loc) · 1.32 KB
/
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
33
34
35
36
37
parameters:
paths:
- src
- tests
# The level 10 is the highest level
level: 5
ignoreErrors:
- '#Call to static method#'
- '#Unsafe usage of new static\(\)#'
- '#Method AnourValar\\LaravelAtom\\Helpers\\NumberHelper\:\:encodeMultiple\(\) should return int\|null but returns float#'
- '#Result of method AnourValar\\LaravelAtom\\Service\:\:lock\(\) \(void\) is used\.#'
- '#Parameter \#1 \$a#'
- '#Parameter \#4 \$d#'
- '#Call to an undefined method#'
- '#If condition is always true#'
- '#Call to an undefined static#'
- '#AnourValar\\LaravelAtom\\Tests\\Models\\Post\:\:\$data#'
- '#is used zero times and#'
- '#should be covariant with return type \(int\<0\, max\>\) of method Countable\:\:count\(\)#'
excludePaths:
checkFunctionNameCase: true
checkInternalClassCaseSensitivity: true
reportMaybesInMethodSignatures: true
reportStaticMethodSignatures: true
checkUninitializedProperties: true
checkDynamicProperties: true
reportAlwaysTrueInLastCondition: true
reportWrongPhpDocTypeInVarTag: true
checkMissingCallableSignature: true
reportPossiblyNonexistentGeneralArrayOffset: true
reportPossiblyNonexistentConstantArrayOffset: true
reportAnyTypeWideningInVarTag: true