From 988d4f56316e3b13d10c124ce1fc0f85a64dce2b Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 28 Aug 2013 22:23:23 -0700 Subject: [PATCH] Exception should be thrown and not handled. --- flight/Engine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flight/Engine.php b/flight/Engine.php index 006d375..e32295e 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -133,10 +133,11 @@ class Engine { * @param int $errstr Error string * @param int $errfile Error file name * @param int $errline Error file line number + * @throws \ErrorException */ public function handleError($errno, $errstr, $errfile, $errline) { if ($errno & error_reporting()) { - $this->handleException(new \ErrorException($errstr, $errno, 0, $errfile, $errline)); + throw new \ErrorException($errstr, $errno, 0, $errfile, $errline); } }