-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
30 lines (26 loc) · 1001 Bytes
/
phpstan.neon.dist
File metadata and controls
30 lines (26 loc) · 1001 Bytes
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
parameters:
level: 5
paths:
- src
excludePaths:
- vendor
# Treat missing type hints as errors
treatPhpDocTypesAsCertain: false
# Report missing typehints
reportUnmatchedIgnoredErrors: false
# Ignore certain errors that are acceptable
ignoreErrors:
# Allow dynamic properties on stdClass-like objects (rclone JSON responses)
- '#Access to an undefined property object::\$#'
- '#Access to an undefined property stdClass::\$#'
# Allow array shapes in return types
- '#Method .+ should return array\{.+\} but returns array#'
# Allow mixed in some cases
- '#Cannot cast mixed to string#'
- '#Part \$\w+ \(mixed\) of encapsed string cannot be cast to string#'
# Process timeout can be thrown by mustRun internally
-
message: '#Dead catch - .+ is never thrown in the try block#'
path: src/ProcessManager.php
# PHP version
phpVersion: 80400