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