diff options
author | Gabriel Rodrigues Couto <gabriel@rodriguescouto.com.br> | 2016-07-02 10:40:59 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-02 10:40:59 -0300 |
commit | adffbf649de03cbb83b2cdc09559f45c567e42c2 (patch) | |
tree | 3d6f000be8a8e45e96cca8b62ce70b332b6656b5 | |
parent | dca580237a7e6ebe5d0c9e1665a2c4039608953a (diff) | |
parent | d894d500dfc4de8374c1fad07a625c37f26385ed (diff) | |
download | php-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.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); }); |