summaryrefslogtreecommitdiff
path: root/phpstan.neon
diff options
context:
space:
mode:
authorwn_ <invalid@email.com>2024-11-12 03:15:53 +0000
committerwn_ <invalid@email.com>2024-11-12 03:15:53 +0000
commita784305cc764a7e039ad87074f541db68a653a5a (patch)
tree508c428e11d5559c3c25ad01ffe1ba474f7da270 /phpstan.neon
parente4c57769e005e75b80ec0fa206fed8ff69e58162 (diff)
Address PHPStan findings as of 2.0.1
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon13
1 files changed, 11 insertions, 2 deletions
diff --git a/phpstan.neon b/phpstan.neon
index 8b0c352a2..fd5bc6be0 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -5,8 +5,17 @@ parameters:
maximumNumberOfProcesses: 4
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- - '#Constant.*\b(SUBSTRING_FOR_DATE|SCHEMA_VERSION|SELF_USER_AGENT|LABEL_BASE_INDEX|PLUGIN_FEED_BASE_INDEX)\b.*not found#'
- - '#Comparison operation ">" between int<1, max> and 0 is always true.#'
+ # set_include_path detection issue
+ - 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/*