aboutsummaryrefslogtreecommitdiff
path: root/phpstan.neon
blob: f68256a6e8d8834cc229b894cad4d45df8cf53c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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:
        ignoreDescriptiveUncheckedExceptions: true
        # ignore some exceptions and their chlidrens
        uncheckedExceptions:
            - Error
            - LogicException
        # ignore all exceptions errors in tests classes
        methodWhitelist:
            PHPUnit\Framework\TestCase: '#.*#i'