-
Notifications
You must be signed in to change notification settings - Fork 301
Expand file tree
/
Copy pathphpstan.neon
More file actions
34 lines (26 loc) · 954 Bytes
/
phpstan.neon
File metadata and controls
34 lines (26 loc) · 954 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
31
32
33
includes:
- ./vendor/timeweb/phpstan-enum/extension.neon
parameters:
level: 6
paths:
- src/package
ignoreErrors:
-
identifier: missingType.iterableValue
-
identifier: missingType.generics
# Ignore "unsafe usage of new static()" warnings - these are safe in this context
- '#Unsafe usage of new static\(\)#'
# Ignore PHPDoc type certainty warnings - these are mostly false positives
- '#Because the type is coming from a PHPDoc#'
# Ignore unused constructor parameters
- '#Constructor .* has an unused parameter#'
# Exclude data folder and other paths that don't need static analysis
excludePaths:
- src/data
- src/update
- vendor
# Treat PHPDoc types as less certain to reduce false positives
treatPhpDocTypesAsCertain: false
universalObjectCratesClasses:
reportUnmatchedIgnoredErrors: false