Skip to content

[LiveComponent] BC Break with v2.28 #2963

@norkunas

Description

@norkunas

Suddenly all components with live forms and DTO's and without real types started to throw errors.

Like:

An exception has been thrown during the rendering of a template ("The "foo" property on component "App\Twig\Component" is missing its property-type. Add the "App\Enum" type so the object can be hydrated later.") in component.html.twig at line 13.

Previously everything was working fine.
DTO's has phpdoc typehints, so probably they are not read anymore and instead Type::mixed() is used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions