/** * Handles an error * * @param \r8\iface\Error $error The error to handle * @return NULL */ public function handle(\r8\iface\Error $error) { $display = strtolower(ini_get('display_errors')); if ($display == "1" || $display == "on") { $this->handler->handle($error); } }
/** * Handles an error * * @param \r8\iface\Error $error The error to handle * @return NULL */ public function handle(\r8\iface\Error $error) { if ($this->handler) { $this->handler->handle($error); } throw new \ErrorException($error->getMessage(), $error->getCode(), $error->getCode(), $error->getFile(), $error->getLine()); }