-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
40 lines (35 loc) · 1.47 KB
/
phpstan.neon
File metadata and controls
40 lines (35 loc) · 1.47 KB
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
38
39
40
parameters:
paths:
- src
- tests
# The level 10 is the highest level
level: 5
ignoreErrors:
- '#Unsafe usage of new static\(\)#'
- '#Call to static method#'
- '#Call to an undefined method#'
- '#is used zero times and is not analysed#'
- '#Access to an undefined property AnourValar\\EloquentValidation\\Tests\\Models#'
- '#but class Illuminate\\Support\\HigherOrderTapProxy is not generic#'
- '#Call to method PHPUnit\\Framework\\Assert\:\:assert#'
- '#AnourValar\\LaravelAtom\\Mapper#'
- '#Unsafe access to private property AnourValar\\EloquentValidation\\Tests\\Models#'
- '# on left side of \?\? is not nullable#'
- '#Call to function is_array\(\) with string will always evaluate to false#'
- '#\(void\) is used#'
- '#Variable \$validator might not be defined#'
- '#asDateTime\(\) should be#'
- '#in isset\(\) is not nullable#'
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