public function restoreErrorHandler() { if ($this->errorHandler) { restore_error_handler(); $this->errorHandler = null; } }