-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathphpstan.neon
More file actions
29 lines (23 loc) · 854 Bytes
/
phpstan.neon
File metadata and controls
29 lines (23 loc) · 854 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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
level: 8
paths:
- src
# Exclude vendor, examples and tests from analysis
excludePaths:
- vendor
- examples
- tests
# For PHP 8.4
phpVersion: 80400
# Enable strict checks
treatPhpDocTypesAsCertain: false
# Additional strict checks for detecting redundant code
checkMissingCallableSignature: true
checkUninitializedProperties: true
checkDynamicProperties: true
# Ignore ReflectionClass generic type warnings for recursive property search methods
# These methods work correctly at runtime but PHPStan cannot infer the generic type statically
ignoreErrors:
- '#has parameter \$reflection with generic class ReflectionClass but does not specify its types: T#'