Skip to content

[Form] Autocompletion using named parameters #2014

Open
@SVillette

Description

@SVillette

Description

In a controller, when a form is created with createForm method, the autocompletion of the form options is triggered when using the third parameter of this method

$form = $this->createForm(FooBarType::class, null, ['method' => 'GET']); // "method" option was suggested with autocompletion

But when using named parameters, the autocompletion is not triggered.

$form = $this->createForm(FooBarType::class, options: ['method' => 'GET']); // Autocompletion does not work

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions