Hi everybody,
With the release of twig 3.27.0 form_errors() is broken in the sandbox environment when you pass it a Symfony\Component\Form\FormView.
An exception has been thrown during the rendering of a template ("Symfony\Component\Form\FormRenderer::searchAndRenderBlock(): Argument #1 ($view) must be of type Symfony\Component\Form\FormView, array given
The cause seems to be changes to ensureToStringAllowed() / doEnsureToStringAllowed() in baebc46
Because FormView is Traversable, it gets cast to array, which causes the provided exception.
Hi everybody,
With the release of twig 3.27.0
form_errors()is broken in the sandbox environment when you pass it aSymfony\Component\Form\FormView.An exception has been thrown during the rendering of a template ("Symfony\Component\Form\FormRenderer::searchAndRenderBlock(): Argument #1 ($view) must be of type Symfony\Component\Form\FormView, array givenThe cause seems to be changes to
ensureToStringAllowed()/doEnsureToStringAllowed()in baebc46Because
FormViewis Traversable, it gets cast to array, which causes the provided exception.