Jordi Boggiano пре 2 година
родитељ
комит
426e42795c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Monolog/ErrorHandler.php

+ 1 - 1
src/Monolog/ErrorHandler.php

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