Skip to content

[Translation] Add autocompletion and navigation for named arguments #2015

@SVillette

Description

@SVillette

Description

When using the translator service with a non default domain (e.g. "validators"), the autocompletion works when the domain is passed as the third argument but not when using PHP8 named arguments.

this->translator->trans('app.existing_translation', domain: 'validators') // Warning: "Symfony: Missing translation key"

In a global way, supporting autcompletion and navigation when using PHP named arguments would be a nice feature (as you started to support it for Symfony constraints classes).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions