What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi guys, after last composer update i got last compatible version for my b2b project of symfony/form

giovanni.piemontese
giovanni.piemontese Spryker Solution Partner Posts: 871 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi guys, after last composer update i got last compatible version for my b2b project of symfony/form and symfony/validator -> both 4.4.7 --> 4.4.8

Now i have some problems when submit a form.. i get this error: Class 'Symfony\Component\Validator\Constraints\RequiredValidator' not found
RequiredValidator class does not exists in symfony validator (never has been created).

The requiredValidator will triggered from ConstraintValidatorFactory that generate the class name so:

    /**
     * Returns the name of the class that validates this constraint.
     *
     * By default, this is the fully qualified name of the constraint class
     * suffixed with "Validator". You can override this method to change that
     * behavior.
     *
     * @return string
     */
    public function validatedBy()
    {
        return static::class.'Validator';
    }

It means that every form field/group that have a constraint new Required() fails because as said there is only a constraint class named Required but not RequiredValidator .

Has anyone the same problem?
Thanks a lot!

Comments