summaryrefslogtreecommitdiff
path: root/src/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'src/Exceptions')
-rw-r--r--src/Exceptions/Handler.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Exceptions/Handler.php b/src/Exceptions/Handler.php
index 0503b5b7..b3d840c0 100644
--- a/src/Exceptions/Handler.php
+++ b/src/Exceptions/Handler.php
@@ -76,7 +76,9 @@ class Handler
http_response_code(500);
ob_end_flush();
- $this->die();
+
+ $this->terminateApplicationImmediately();
+
return '';
}
@@ -86,10 +88,10 @@ class Handler
* @codeCoverageIgnore
* @param string $message
*/
- protected function die($message = '')
+ protected function terminateApplicationImmediately($message = '')
{
echo $message;
- die();
+ die(1);
}
/**