Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on form normalization #62

Open
jcerri opened this issue Nov 4, 2021 · 1 comment
Open

Error on form normalization #62

jcerri opened this issue Nov 4, 2021 · 1 comment

Comments

@jcerri
Copy link

jcerri commented Nov 4, 2021

I got the following error when normalizing a form containing SubmitButton with the InitialValuesNormalizer :

Argument 1 passed to Limenius\Liform\Serializer\Normalizer\InitialValuesNormalizer::getValues() must be an instance of Symfony\Component\Form\Form, instance of Symfony\Component\Form\SubmitButton given, called in my-project/vendor/limenius/liform/src/Limenius/Liform/Serializer/Normalizer/InitialValuesNormalizer.php on line 62

The getValues() function requires a Form but the SubmitButton is not one but implements FormInterface.
In my case, replacing Form by FormInterface does the job but may require further testing.

@caudurieauelma
Copy link

This issue is still here, working on Symfony 5.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants