mirror of
https://github.com/doctrine/instantiator.git
synced 2026-03-23 22:42:06 +01:00
32 lines
1.0 KiB
Plaintext
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'
|