forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
49 lines (48 loc) · 1.9 KB
/
phpstan.neon.dist
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
44
45
46
47
48
49
includes:
- .tools/phpstan/baseline.neon
# activate dead code detection. this line should be removed after we updated to phpstan 1.0+
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
level: 5
treatPhpDocTypesAsCertain: false
paths:
# restrict to core and core addons, ignore other locally installed addons
- redaxo/src/core
- redaxo/src/addons/backup
- redaxo/src/addons/be_style
- redaxo/src/addons/cronjob
- redaxo/src/addons/debug
- redaxo/src/addons/install
- redaxo/src/addons/media_manager
- redaxo/src/addons/mediapool
- redaxo/src/addons/metainfo
- redaxo/src/addons/phpmailer
- redaxo/src/addons/project
- redaxo/src/addons/structure
- redaxo/src/addons/users
excludes_analyse:
- redaxo/src/addons/backup/vendor/
- redaxo/src/addons/be_style/vendor/
- redaxo/src/addons/debug/vendor/
- redaxo/src/addons/phpmailer/vendor/
- redaxo/src/core/vendor/
# https://phpstan.org/config-reference#universal-object-crates
universalObjectCratesClasses:
- rex_fragment
# make phpstan aware of never returning methods
# https://github.com/phpstan/phpstan/issues/2900
earlyTerminatingMethodCalls:
rex_response:
- sendRedirect
symfony:
console_application_loader: .tools/phpstan/console.php
ignoreErrors:
- '#Access to an undefined property rex_media::\$med_foo\.#'
- '#Access to an undefined property rex_article::\$art_foo\.#'
- '#Access to an undefined property rex_category::\$cat_foo\.#'
- '#Access to an undefined property rex_clang::\$clang_foo\.#'
- '#Unsafe usage of new static\(\)\.#'
- '#Constructor of class rex_form_.*_element has an unused parameter \$tag.#'
-
message: '#.*deprecated.*#'
path: '*/update.php'