Haehnchen / idea-php-symfony2-plugin

IntelliJ IDEA / PhpStorm Symfony Plugin
https://plugins.jetbrains.com/plugin/7219
MIT License
910 stars 138 forks source link

Renaming a Twig template breaks its usages #2383

Open stof opened 1 month ago

stof commented 1 month ago

Renaming a Twig template correctly identifies its usages in ->render() calls as places that are impacted by the renaming. However, the renaming replacing the whole string containing a template name with the new filename of the template. Instead, the parts of the template name corresponding to the namespace and subfolders should be preserved, replacing only the filename after the last /