You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an inspection in plugin that checks required interface implementation for Symfony services with certain tags.
However in a case if Twig 3.x is used in the project and Symfony service is tagged with either twig.extension or twig.loader - Symfony plugin reports warning like Class needs to implement '\Twig_ExtensionInterface' for tag 'twig.extension'
It looks like these entries need to be corrected with additional test for Twig version, used by the project. Hope it can be determined, e.g. from Composer integration that is available in PHPStorm.
The text was updated successfully, but these errors were encountered:
PHPStorm 2020.2.3, Symfony plugin 0.21.203
There is an inspection in plugin that checks required interface implementation for Symfony services with certain tags.
However in a case if Twig 3.x is used in the project and Symfony service is tagged with either
twig.extension
ortwig.loader
- Symfony plugin reports warning likeClass needs to implement '\Twig_ExtensionInterface' for tag 'twig.extension'
This is only correct for Twig 1.x and 2.x, but for 3.x only namespaced classes (
Twig\Extension\ExtensionInterface
andTwig\Loader\LoaderInterface
) are available so this inspection is not correct for this case.It looks like these entries need to be corrected with additional test for Twig version, used by the project. Hope it can be determined, e.g. from Composer integration that is available in PHPStorm.
The text was updated successfully, but these errors were encountered: