File: phpstan.neon.dist

package info (click to toggle)
php-doctrine-instantiator 2.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 336 kB
  • sloc: php: 624; makefile: 18; xml: 16
file content (21 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
includes:
    - vendor/phpstan/phpstan-phpunit/extension.neon
    - vendor/phpstan/phpstan-phpunit/rules.neon

parameters:
    level: max
    phpVersion: 80200
    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 of object but returns Closure\(\): mixed\.#'
            path: 'src/Doctrine/Instantiator/Instantiator.php'

        # dynamic properties confuse static analysis
        -
            message: '#Access to an undefined property object::\$foo\.#'
            path: 'tests/DoctrineTest/InstantiatorTest/InstantiatorTest.php'