forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
35 lines (35 loc) · 1.42 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
parameters:
level: 0
paths:
- redaxo/src/
bootstrap: phpstan-bootstrap.php
excludes_analyse:
- redaxo/src/addons/be_style/vendor/
- redaxo/src/addons/debug/vendor/
- redaxo/src/addons/media_manager/tests/
- redaxo/src/addons/mediapool/tests/
- redaxo/src/addons/phpmailer/vendor/
- redaxo/src/addons/structure/tests/
- redaxo/src/addons/tests/vendor/
- redaxo/src/core/vendor/
- redaxo/src/core/tests/
ignoreErrors:
-
# allow undefined variable errors in pages, because we rely on variables beeing available from the includer scope
message: '#Undefined variable: .+#'
path: '*/pages/*'
-
# allow undefined variable errors in pages, because we rely on variables beeing available from the includer scope
message: '#Undefined variable: .+#'
path: '*/addons/structure/functions/function_rex_category.php'
-
message: '#Using \$this outside a class\.#'
path: '*/fragments/*'
-
message: '#Access to an undefined property object.+#'
path: '*/fragments/*'
-
message: '#Call to an undefined method object::subfragment\(\)\.#'
path: '*/fragments/*'
- '#Undefined variable: \$this#'
- '#Constructor of class rex_form_.*_element has an unused parameter \$tag\.#'