Skip to content

Commit

Permalink
Merge branch '2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jun 21, 2023
2 parents 8c70660 + 0ff87cf commit e239236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private function handleException(\Throwable $e): never
($this->previousExceptionHandler)($e);
}

if (!headers_sent() && !(bool) ini_get('display_errors')) {
if (!headers_sent() && in_array(strtolower((string) ini_get('display_errors')), ['0', '', 'false', 'off', 'none', 'no'], true)) {
http_response_code(500);
}

Expand Down

0 comments on commit e239236

Please sign in to comment.