From a784305cc764a7e039ad87074f541db68a653a5a Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 12 Nov 2024 03:15:53 +0000 Subject: Address PHPStan findings as of 2.0.1 --- phpstan.neon | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'phpstan.neon') 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/* -- cgit v1.2.3-54-g00ecf