original_string: private static function resolveValidationGroups($groups, FormInterface $form)
      {
          if (!\is_string($groups) && \is_callable($groups)) {
              $groups = $groups($form);
          }
  
          if ($groups instanceof GroupSequence) {
              return $groups;
          }
  
          return (array) $groups;
      }
code: private static function resolveValidationGroups($groups, FormInterface $form)
      {
          if (!\is_string($groups) && \is_callable($groups)) {
              $groups = $groups($form);
          }
  
          if ($groups instanceof GroupSequence) {
              return $groups;
          }
  
          return (array) $groups;
      }
code_tokens: private static function resolveValidationGroups ( $ groups , FormInterface $ form ) { if ( ! \ is_string ( $ groups ) && \ is_callable ( $ groups ) ) { $ groups = $ groups ( $ form ) ; } if ( $ groups instanceof GroupSequence ) { return $ groups ; } return ( array ) $ groups ; }
docstring: Post-processes the validation groups option for a given form.
  
  @param string|GroupSequence|(string|GroupSequence)[]|callable $groups The validation groups
  @param FormInterface                                          $form   The validated form
  
  @return (string|GroupSequence)[] The validation groups
docstring_tokens: Post - processes the validation groups option for a given form .