-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon.dist
53 lines (50 loc) · 1.82 KB
/
phpstan.neon.dist
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
41
42
43
44
45
46
47
48
49
50
51
52
53
includes:
- phar://phpstan.phar/conf/config.level8.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
- ./vendor/phpstan/phpstan-phpunit/extension.neon
- ./vendor/phpstan/phpstan-phpunit/rules.neon
- ./vendor/phpstan/phpstan-strict-rules/rules.neon
- ./vendor/shipmonk/phpstan-rules/rules.neon
parameters:
paths:
- src
- tests
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkTooWideReturnTypesInProtectedAndPublicMethods: true
checkBenevolentUnionTypes: true
exceptions:
check:
missingCheckedExceptionInThrows: true
tooWideThrowType: true
implicitThrows: false
checkedExceptionClasses:
- ShipMonk\DoctrineEntityPreloader\Exception\RuntimeException
ignoreErrors:
-
message: '#Strict comparison using === between ReflectionProperty and null will always evaluate to false#'
identifier: 'identical.alwaysFalse'
reportUnmatched: false
path: 'src/EntityPreloader.php'
-
message: '#Result of \|\| is always false#'
identifier: 'booleanOr.alwaysFalse'
reportUnmatched: false
path: 'src/EntityPreloader.php'
-
message: '#has an uninitialized property \$id#'
identifier: 'property.uninitialized'
path: 'tests/Fixtures/Blog'
-
identifier: 'property.onlyWritten'
path: 'tests/Fixtures/Synthetic'
-
identifier: 'property.uninitialized'
path: 'tests/Fixtures/Synthetic'
-
identifier: 'property.unused'
path: 'tests/Fixtures/Synthetic'
-
identifier: 'property.unusedType'
reportUnmatched: false
path: 'tests/Fixtures/Synthetic'