Skip to content

Commit 9ddfc98

Browse files
authored
Merge pull request #352 from Gasol/bad-exit-status-255
Fix bad exit status 255 generated by uncaught TypeError
2 parents 0d6445b + 889e965 commit 9ddfc98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/ErrorHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private function renderException($exception): void {
140140
private function getLastError(): array {
141141
$error = \error_get_last();
142142

143-
if ($error && $error['type'] === \E_USER_NOTICE) {
143+
if ($error === null || $error['type'] === \E_USER_NOTICE) {
144144
return [];
145145
}
146146

0 commit comments

Comments
 (0)