-
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathphpstan.neon
More file actions
19 lines (19 loc) · 839 Bytes
/
phpstan.neon
File metadata and controls
19 lines (19 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
level: 10
paths:
- src
ignoreErrors:
# Both classes are final, so "might have hooks in a subclass" is a false positive
- identifier: unset.possiblyHookedProperty
path: src/ReflectionFunction.php
- identifier: unset.possiblyHookedProperty
path: src/ReflectionMethod.php
# Class names from the AST are semantically class-strings by construction (they come from
# parsed PHP class declarations), but PHPStan cannot verify this without autoloading, which
# would violate the library's contract of reflecting code without loading classes.
- identifier: return.type
path: src/Traits/ReflectionClassLikeTrait.php
message: '#resolveAsClassString#'
- identifier: return.type
path: src/Traits/AttributeResolverTrait.php
message: '#resolveAttributeClassName#'