This commit is contained in:
2020-10-08 03:37:44 +08:00
parent 546093b01f
commit 065222e518
2 changed files with 35 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class ErrorHandler extends Component implements ErrorInterface
public function shutdown()
{
$lastError = error_get_last();
if ($lastError['type'] !== E_ERROR) {
if (empty($lastError) || $lastError['type'] !== E_ERROR) {
return;
}