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;
    }
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;
    }
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 ; }
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
Post - processes the validation groups option for a given form .