From 2798ef78aaa6cc88e926b6dbf7b9ab9101ea1720 Mon Sep 17 00:00:00 2001 From: Rougin Royce Gutib Date: Sat, 8 Jul 2017 00:41:20 +0800 Subject: [PATCH] Update WhoopsErrorHandler --- src/Debug/WhoopsErrorHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Debug/WhoopsErrorHandler.php b/src/Debug/WhoopsErrorHandler.php index e410b96c..d1a4017e 100644 --- a/src/Debug/WhoopsErrorHandler.php +++ b/src/Debug/WhoopsErrorHandler.php @@ -81,7 +81,9 @@ public function display() { error_reporting(E_ALL); - $this->pushHandler(new \Whoops\Handler\PrettyPageHandler); + $handler = new \Whoops\Handler\PrettyPageHandler; + + $this->__call('pushHandler', array($handler)); return $this->whoops->register(); }