From 63aeebdee048d777b4b4f0a612356d1245067682 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 12 May 2022 15:19:09 +0900 Subject: [PATCH] phpstan ingore for Error Handlung function --- www/lib/Error.Handling.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/lib/Error.Handling.php b/www/lib/Error.Handling.php index 69f6d64e..5493c034 100644 --- a/www/lib/Error.Handling.php +++ b/www/lib/Error.Handling.php @@ -32,7 +32,8 @@ function MyErrorHandler( int $line, array $context = [] ): bool { - if (!(error_reporting() & $type) && SHOW_ALL_ERRORS == false) { + /** @phpstan-ignore-next-line cannot check show all errors constant */ + if (!(error_reporting() & $type) && SHOW_ALL_ERRORS === false) { // This error code is not included in error_reporting return false; }