Skip to content

Commit

Permalink
Fix phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored Jun 21, 2023
1 parent 0ff87cf commit 426e427
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 @@ -198,7 +198,7 @@ private function handleException(\Throwable $e): void
($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);
}

Expand Down

0 comments on commit 426e427

Please sign in to comment.