original_string: protected function logErrorsForDescriptor(FileDescriptor $fileDescriptor)
      {
          $errors = $fileDescriptor->getAllErrors();
  
          /** @var Error $error */
          foreach ($errors as $error) {
              $this->log($error->getCode(), $error->getSeverity(), $error->getContext());
          }
      }
code: protected function logErrorsForDescriptor(FileDescriptor $fileDescriptor)
      {
          $errors = $fileDescriptor->getAllErrors();
  
          /** @var Error $error */
          foreach ($errors as $error) {
              $this->log($error->getCode(), $error->getSeverity(), $error->getContext());
          }
      }
code_tokens: protected function logErrorsForDescriptor ( FileDescriptor $ fileDescriptor ) { $ errors = $ fileDescriptor -> getAllErrors ( ) ; /** @var Error $error */ foreach ( $ errors as $ error ) { $ this -> log ( $ error -> getCode ( ) , $ error -> getSeverity ( ) , $ error -> getContext ( ) ) ; } }
docstring: Writes the errors found in the Descriptor to the log.
  
  @param FileDescriptor $fileDescriptor
  
  @return void
docstring_tokens: Writes the errors found in the Descriptor to the log .