Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HWesterhof opened this issue Dec 4, 2023 · 1 comment
Open

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

HWesterhof opened this issue Dec 4, 2023 · 1 comment
Labels

Comments

@HWesterhof
Copy link

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

Haehnchen added a commit that referenced this issue Apr 17, 2024
@Haehnchen
Copy link
Owner

thx, somehow i missed the class class api change

Haehnchen added a commit that referenced this issue Apr 17, 2024
#2261 whitelist "Symfony\Bridge\Twig\Attribute\Template" for template usages to fix render detection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants