Skip to content

bug: Entity with property named "notes" will cause extract error #33

Open
@webmasterMeyers

Description

@webmasterMeyers

I was not sure if this should go here or under "symfony-bundle"

I had 3 entities with a property name of notes and a formType with $builder->add('notes'); this would cause bin/console translation:extract to fail with the error:

Warning: DOMElement::setAttribute() expects parameter 2 to be string, array given

Renaming the property to note removed this error. I think simply adding a "notes" form element will cause the error. (not tested).

The file is vendor/php-translation/symfony-storage/src/Dumper/Port/SymfonyPort.php line 57

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