phpstan ingore for Error Handlung function

This commit is contained in:
Clemens Schwaighofer
2022-05-12 15:19:09 +09:00
parent 51e700cd10
commit 63aeebdee0

View File

@@ -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;
}