/** * Clears the captured errors without affecting the starting/stopping of the capture. */ public static function clearCapturedPhpErrors() { self::$capturedPhpErrors = array(); }