summaryrefslogtreecommitdiff
path: root/phpstan.neon
blob: 5052f5d73f7b89a3b786f687c720c55fa6c17a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
parameters:
   level: 6
   tmpDir: .phpstan-tmp
   parallel:
      maximumNumberOfProcesses: 4
   reportUnmatchedIgnoredErrors: false
   ignoreErrors:
      # set_include_path detection issue
      - message: '#"(autoload|colors|errorhandler|login_form|sessions)\.php"#'
        identifier: requireOnce.fileNotFound

      # undetected as DOMElement
      - '#Call to an undefined method DOMNode::#'
      - '#Access to an undefined property DOMNode::#'
      - '#expects DOMElement, DOMNode given#'

      # allow passing a 'strlen' string, etc. as the array_filter callback
      - "/Parameter #2 \\$callback of function array_filter expects .+ '.+' given/"

      - message: '##'
        paths:
          - lib/*
          - vendor/*
          - plugins/*/vendor/*
          - plugins.local/*/vendor/*
   excludePaths:
      - lib/**/test/*
      - lib/**/tests/*
      - lib/dojo-src/*
      - node_modules/*
      - plugins.local/**/test/*
      - plugins.local/**/tests/*
      - plugins.local/*/vendor/intervention/*
      - plugins.local/*/vendor/psr/log/*
      - plugins.local/cache_s3/vendor/*
      - plugins/**/test/*
      - plugins/**/Test/*
      - plugins/**/tests/*
      - plugins/*/vendor/intervention/*
      - plugins/*/vendor/psr/log/*
      - vendor/**/*
   paths:
      - .