Skip to content

Exception on form rendering when using Synfony 4 build-in Bootstrap 4 form support #179

Open
@mathiasstocker

Description

@mathiasstocker

Your bundle works great so far, i only have problems when i set the bootstrap 4 form theme as described here:
https://symfony.com/doc/current/form/bootstrap4.html

The form field was set like this:

->add('mobile', PhoneNumberType::class, array('widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'preferred_country_choices' => array('CH')))

When the page is rendered i got the following exception:
An exception has been thrown during the rendering of a template ("Notice: Array to string conversion").

Would be great to have this fixed or to provide me a workaround to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions