summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabriel Rodrigues Couto <gabriel@rodriguescouto.com.br>2016-07-02 10:40:59 -0300
committerGitHub <noreply@github.com>2016-07-02 10:40:59 -0300
commitadffbf649de03cbb83b2cdc09559f45c567e42c2 (patch)
tree3d6f000be8a8e45e96cca8b62ce70b332b6656b5
parentdca580237a7e6ebe5d0c9e1665a2c4039608953a (diff)
parentd894d500dfc4de8374c1fad07a625c37f26385ed (diff)
downloadphp-terminal-gameboy-emulator-adffbf649de03cbb83b2cdc09559f45c567e42c2.zip
php-terminal-gameboy-emulator-adffbf649de03cbb83b2cdc09559f45c567e42c2.tar.gz
php-terminal-gameboy-emulator-adffbf649de03cbb83b2cdc09559f45c567e42c2.tar.bz2
Merge pull request #45 from hasegawa-tomoki/fix-error-handler-for-php7
PHP7 wants Throwable for 1st parameter of set_exception_handler's closure.
-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);
});