public function triggerError($errorInfo, $errorNumber = null) { // we could also extract file and line from backtrace // and call handleError() directly trigger_error($errorInfo, $errorNumber); }