Skip to content

Service Autowire with named argument does not work #2444

@Justinas-Jurciukonis

Description

@Justinas-Jurciukonis

Using PHPStorm 2025.1.3

Following code snippets do work - you can CMD/CTRL + Click to go to definition

#[Autowire(service: 'some.service.tag')]
private SomeService $service;

#[Autowire('%app.parameter%')]
private string $parameter;

But if using parameter with param: named argument, it no longer works:

#[Autowire(param: 'app.parameter')]
private string $parameter;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions