Skip to content

Issues with #[Template()] annotation and autocompletion #2261

Open
@HWesterhof

Description

@HWesterhof

Since I migrated to the built in #[Template()] annotation of Symfony 6, the autocompletion stopped working.

  • PhpStorm version: PhpStorm 2023.2.4 (Build #PS-232.10227.13, built on November 18, 2023)
  • Symfony support version 2022.1.261
use Symfony\Bridge\Twig\Attribute\Template;

Without using the Template() annotation:
image

Also, a link from the template back to the controller:
image

Using the Template() annotation (no pop-up)
image

No link back to the controller:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions