aboutsummaryrefslogtreecommitdiff
path: root/phpstan.neon
blob: 1aa3f10247e5bd37f4b8c1773a17b25a0fd1f042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
includes:
    - vendor/phpstan/phpstan-phpunit/extension.neon
    - vendor/pepakriz/phpstan-exception-rules/extension.neon

parameters:
    level: 5
    paths:
        - app/class
        - app/fn
        - index.php
        - tests
    exceptionRules:
        # ignore some exceptions and their chlidrens
        uncheckedExceptions:
            - Error
            - LogicException
        # ignore all exceptions errors in tests classes
        methodWhitelist:
            PHPUnit\Framework\TestCase: '#.*#i'