-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
31 lines (26 loc) · 1.01 KB
/
phpstan.neon.dist
File metadata and controls
31 lines (26 loc) · 1.01 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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
level: max
phpVersion: 80400
paths:
- src
- tests
ignoreErrors:
# PHPStan is unable to infer the return type of unserialize() in this case.
-
message: '#Method Doctrine\\Instantiator\\Instantiator\:\:buildFactory\(\) should return callable\(\): T but returns Closure\(\): mixed\.#'
path: 'src/Instantiator.php'
# dynamic properties confuse static analysis
-
message: '#Access to an undefined property object::\$foo\.#'
path: 'tests/InstantiatorTest/InstantiatorTest.php'
# The property is static, we cannot use templating here
-
message: '#instantiate\(\) should return#'
path: 'src/Instantiator.php'
# this trait is not meant to be use'd
-
message: '#is used zero times#'
path: 'tests/InstantiatorTestAsset/SimpleTraitAsset.php'