Repository navigation
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
34 lines (34 loc) · 1.63 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
34 lines (34 loc) · 1.63 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
parameters:
level: max
paths:
- src
- tests
tmpDir: reports/phpstan
ignoreErrors:
# PHPDoc is prohibited inside src/Internal/; iterable value types on the request
# log payload (body and query parameters) cannot be expressed there.
- identifier: missingType.iterableValue
path: src/Internal/LogRequest.php
# PHPDoc is prohibited inside src/Internal/; iterable value types on the response
# log payload (decoded body) cannot be expressed there.
- identifier: missingType.iterableValue
path: src/Internal/LogResponse.php
# PHPDoc is prohibited inside src/Internal/; the path lookup keyed by path cannot
# carry its value type there.
- identifier: missingType.iterableValue
path: src/Internal/Paths.php
# The request context returned by LogRequest::toContext() is typed as `array`, so
# PHPStan cannot infer the shape consumed by the LogResponse factory.
- identifier: argument.type
path: src/Internal/LogResponse.php
# PHPDoc is prohibited inside tests/; the captured context arrays cannot carry a
# value type, so PHPStan flags offset access on the assertions.
- identifier: offsetAccess.nonOffsetAccessible
path: tests/Unit/LogMiddlewareTest.php
# PHPDoc is prohibited inside tests/; the captured log entries and the data sets
# cannot carry a value type.
- identifier: missingType.iterableValue
paths:
- tests/Unit/CapturingLogger.php
- tests/Unit/LogMiddlewareTest.php
reportUnmatchedIgnoredErrors: true