Skip to content

@Template() complains about non-existing template, but it does work #999

Closed
@rudiedirkx

Description

@rudiedirkx
  • PHP Storm 2017.2.2 EAP
  • Symfony plugin 0.14.150
  • Project is Symfony 2.8.x
  • No plugin errors, I think?

sensio/framework-extra-bundle defines a @Template annotation to magically use the correct template. This works for every action in my controller, but the plugin complains about the template not existing for editAction. The template does exist, and works.

When I use the inspection action it wants to make ed.html.twig. Where is the it ?
If I rename the action to edit2Action, it wants to make edit2.html.twig, which is correct.
If I rename the action to edititAction, it wants to make ed.html.twig again, which is wrong.

The rest of the actions are fine (showAction, newAction, indexAction etc).

This happened in 2017.2.1 EAP and 2017.2 (not EAP) too. I'm not sure about before then...

(For me: BriefsjabloonController::editAction)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions