/** * Disable Eight PHP error handling. * * @return void */ public static function disable() { if (Eight_Exception_PHP::$enabled) { restore_error_handler(); Event::clear('system.shutdown', array('Eight_Exception_PHP', 'shutdown_handler')); Eight_Exception_PHP::$enabled = FALSE; } }