-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathphpstan.neon
25 lines (25 loc) · 1.27 KB
/
phpstan.neon
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
parameters:
level: 5
paths:
- src
excludePaths:
- vendor
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#^Call to deprecated method toolkitRunGrumphp#'
- '#^Call to an undefined method Robo\\Collection\\CollectionBuilder::task#'
- '#^Call to an undefined method Robo\\Collection\\CollectionBuilder\|Robo\\Task\\Filesystem\\FilesystemStack::task#'
- '#^Call to an undefined method Consolidation\\Config\\ConfigInterface::replace\(\)#'
- '#^Parameter \#2 \$defaultFallback of method Consolidation\\Config\\ConfigInterface::get\(\) expects string\|null, array given#'
- '#^Call to an undefined method DOMNode::getElementsByTagName\(\)#'
- '#^Parameter \#1 \$roboClass of class Robo\\Runner constructor expects string\|null, array<int, string> given\.#'
-
message: '#^Negated boolean expression is always false\.#'
path: src/TaskRunner/AbstractCommands.php
- '#^Call to deprecated method registerCommandClass\(\) of class Robo\\Runner#'
-
message: "#^Call to function method_exists\\(\\) with '[a-zA-Z\\\\_…]+' and 'sanitize' will always evaluate to false\\.$#"
count: 2
path: src/TaskRunner/Commands/DrupalSanitiseCommands.php
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon