-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
27 lines (27 loc) · 1.24 KB
/
phpstan.neon.dist
File metadata and controls
27 lines (27 loc) · 1.24 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
parameters:
level: max
paths:
- src
- tests
tmpDir: reports/phpstan
ignoreErrors:
- identifier: return.type
- identifier: argument.type
- identifier: missingType.iterableValue
- identifier: offsetAccess.nonOffsetAccessible
# PHPDoc is prohibited inside tests/; generic IteratorAggregate types are unspecified by design.
- identifier: missingType.generics
path: tests/Models/Products.php
# PHPDoc is prohibited inside tests/; the closure's typed return cannot be expressed.
- identifier: throw.notThrowable
path: tests/Unit/FailingTransport.php
# PHPDoc is prohibited inside tests/; Closure return type in DataProvider factories is not statically inferrable.
- identifier: method.nonObject
path: tests/Unit/Client/RequestTest.php
# PHPStan knows all Code enum values are >= 100, making the lower-bound comparison always true.
- identifier: greaterOrEqual.alwaysTrue
path: src/Code.php
# PHPStan knows all Code enum values are <= 511, making the upper-bound comparison always true.
- identifier: smallerOrEqual.alwaysTrue
path: src/Code.php
reportUnmatchedIgnoredErrors: true