Files
archived-instantiator/phpstan.neon.dist
Grégoire Paris 174e40c0d2 Use shallower trees
It is more consistent with what we do on other projects.
2026-02-03 19:52:22 +01:00

32 lines
1.0 KiB
Plaintext

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'