craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
736 stars 118 forks source link

Symfony4: createForm expect a string not a Type. #319

Closed brunonic closed 4 years ago

brunonic commented 6 years ago

in FormFlow.php

// createFormForStep

return $this->formFactory->create($formType, $this->formData, $options);

$formType must be a string.

Then when I do something like

$form = $exempleFlow->createForm();

I got this

Expected argument of type "string", "App\Form\ExempleType" given
craue commented 4 years ago

See https://github.com/craue/CraueFormFlowBundle/pull/320#issuecomment-552805996.