1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 20:57:36 +02:00

Fix phpstan error

This commit is contained in:
Jordi Boggiano
2023-06-21 17:17:59 +02:00
committed by GitHub
parent 0ff87cf321
commit 426e42795c

View File

@@ -198,7 +198,7 @@ class ErrorHandler
($this->previousExceptionHandler)($e);
}
if (!headers_sent() && in_array(strtolower(ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) {
if (!headers_sent() && in_array(strtolower((string) ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) {
http_response_code(500);
}