Skip to content

SymfonyForm: ChoiceType issue with choices as (static) function call #76

@marcoreni

Description

@marcoreni

As per php-translation/symfony-bundle#143 :

When I use a function or a static function that returns an array for a ChoiceType element, i get a "Form choice is not an array" error.

The extractor should compute the result of the function and use that to extract the translation items.

Uploading a PR containing test case right now.

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