original_string: protected function _getValidationErrors($subject)
      {
          $errors = array();
          foreach ($this->_getChildValidators() as $_idx => $_validator) {
              try {
                  if (!($_validator instanceof ValidatorInterface)) {
                      throw $this->_createOutOfRangeException($this->__('Validator %1$s is invalid', array($_idx)), null, null, $_validator);
                  }
  
                  $_validator->validate($subject);
              } catch (ValidationFailedExceptionInterface $e) {
                  $errors[] = $e->getValidationErrors();
              }
          }
  
          return $this->_normalizeErrorList($errors);
      }
code: protected function _getValidationErrors($subject)
      {
          $errors = array();
          foreach ($this->_getChildValidators() as $_idx => $_validator) {
              try {
                  if (!($_validator instanceof ValidatorInterface)) {
                      throw $this->_createOutOfRangeException($this->__('Validator %1$s is invalid', array($_idx)), null, null, $_validator);
                  }
  
                  $_validator->validate($subject);
              } catch (ValidationFailedExceptionInterface $e) {
                  $errors[] = $e->getValidationErrors();
              }
          }
  
          return $this->_normalizeErrorList($errors);
      }
code_tokens: protected function _getValidationErrors ( $ subject ) { $ errors = array ( ) ; foreach ( $ this -> _getChildValidators ( ) as $ _idx => $ _validator ) { try { if ( ! ( $ _validator instanceof ValidatorInterface ) ) { throw $ this -> _createOutOfRangeException ( $ this -> __ ( 'Validator %1$s is invalid' , array ( $ _idx ) ) , null , null , $ _validator ) ; } $ _validator -> validate ( $ subject ) ; } catch ( ValidationFailedExceptionInterface $ e ) { $ errors [ ] = $ e -> getValidationErrors ( ) ; } } return $ this -> _normalizeErrorList ( $ errors ) ; }
docstring: Retrieve a list of reasons that make the subject invalid.
  
  This implementation uses child validators, and validates the subject with each one sequentially.
  It then aggregates the errors from all of them into a flat list.
  
  @since [*next-version*]
  
  @param mixed $subject The value to validate.
  
  @throws OutOfRangeException          If one of the child validators is not a validator.
  @throws ValidationExceptionInterface If problem validating.
  
  @return string[]|Stringable[]|Traversable|stdClass The list of validation errors. Must be finite.
docstring_tokens: Retrieve a list of reasons that make the subject invalid .