You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I got the following error when normalizing a form containing
SubmitButton
with theInitialValuesNormalizer
: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 aForm
but theSubmitButton
is not one but implementsFormInterface
.In my case, replacing
Form
byFormInterface
does the job but may require further testing.The text was updated successfully, but these errors were encountered: