original_string: public static function unstackErrors()
      {
          $level = array_pop(self::$stackedErrorLevels);
  
          if (null !== $level) {
              $errorReportingLevel = error_reporting($level);
              if ($errorReportingLevel !== ($level | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR)) {
                  // If the user changed the error level, do not overwrite it
                  error_reporting($errorReportingLevel);
              }
          }
  
          if (empty(self::$stackedErrorLevels)) {
              $errors = self::$stackedErrors;
              self::$stackedErrors = array();
  
              foreach ($errors as $error) {
                  $error[0]->log($error[1], $error[2], $error[3]);
              }
          }
      }
code: public static function unstackErrors()
      {
          $level = array_pop(self::$stackedErrorLevels);
  
          if (null !== $level) {
              $errorReportingLevel = error_reporting($level);
              if ($errorReportingLevel !== ($level | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR)) {
                  // If the user changed the error level, do not overwrite it
                  error_reporting($errorReportingLevel);
              }
          }
  
          if (empty(self::$stackedErrorLevels)) {
              $errors = self::$stackedErrors;
              self::$stackedErrors = array();
  
              foreach ($errors as $error) {
                  $error[0]->log($error[1], $error[2], $error[3]);
              }
          }
      }
code_tokens: public static function unstackErrors ( ) { $ level = array_pop ( self :: $ stackedErrorLevels ) ; if ( null !== $ level ) { $ errorReportingLevel = error_reporting ( $ level ) ; if ( $ errorReportingLevel !== ( $ level | E_PARSE | E_ERROR | E_CORE_ERROR | E_COMPILE_ERROR ) ) { // If the user changed the error level, do not overwrite it error_reporting ( $ errorReportingLevel ) ; } } if ( empty ( self :: $ stackedErrorLevels ) ) { $ errors = self :: $ stackedErrors ; self :: $ stackedErrors = array ( ) ; foreach ( $ errors as $ error ) { $ error [ 0 ] -> log ( $ error [ 1 ] , $ error [ 2 ] , $ error [ 3 ] ) ; } } }
docstring: Unstacks stacked errors and forwards to the logger.
docstring_tokens: Unstacks stacked errors and forwards to the logger .