改名
This commit is contained in:
@@ -42,10 +42,11 @@ class OnRequest extends Callback
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$types = [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR];
|
$types = [E_ERROR, E_PARSE, E_CORE_ERROR, E_COMPILE_ERROR];
|
||||||
if (in_array($error['type'], $types)) {
|
if (!in_array($error['type'], $types)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$response->status(500);
|
$response->status(500);
|
||||||
$response->end($error['message']);
|
$response->end($error['message']);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
/** @var HRequest $sRequest */
|
/** @var HRequest $sRequest */
|
||||||
[$sRequest, $sResponse] = static::setContext($request, $response);
|
[$sRequest, $sResponse] = static::setContext($request, $response);
|
||||||
|
|||||||
Reference in New Issue
Block a user