From 75c409703d31d396010d1a75083776caac94b26a Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Fri, 25 Aug 2023 12:35:04 +0200 Subject: [PATCH] Ignore phpstan errors related to `DOMDocument` or `DOMElement` --- phpstan.neon | 1 + 1 file changed, 1 insertion(+) diff --git a/phpstan.neon b/phpstan.neon index a683931de..43cecf9c4 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -26,6 +26,7 @@ parameters: ignoreErrors: - '#Unsafe usage of new static\(\)#' - '#. but return statement is missing#' + - '#Cannot call method importNode\(\) on DOMDocument\|null.#' # ldap_connect() returns `LDAP\Connection` in php >= 81 -