summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--boot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 54d707a..d2e7cfe 100644
--- a/boot.php
+++ b/boot.php
@@ -15,7 +15,7 @@ use GameBoy\Core;
use GameBoy\Keyboard;
if (PHP_VERSION_ID >= 70000) {
- set_exception_handler(function (Error $exception) {
+ set_exception_handler(function (\Throwable $exception) {
fwrite(STDERR, $exception->getMessage() . PHP_EOL);
exit(254);
});