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
Services with tag twig.extension should implement Twig_ExtensionInterface
Context: Twig >= 1.38.0 or >= 2.7.0
Before:
- Twig_Extension aliased to Twig\Extension\AbstractExtension
After:
- Twig\Extension\AbstractExtension aliased to Twig_Extension
But we cannot just check for Twig\Extension\AbstractExtension instead of \Twig_Extension because users with old Twig version don't have this class.
So, we check with the interface \Twig_ExtensionInterface because it exists since 1.0.0 and 2.0.0 and works with >= 1.38.0 and >= 2.7.0 because \Twig\Extension\ExtensionInterface is aliased to \Twig_ExtensionInterface
Copy file name to clipboardExpand all lines: src/test/java/fr/adrienbrault/idea/symfony2plugin/tests/codeInspection/service/TaggedExtendsInterfaceClassInspectionTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ public void testThatKnownTagsShouldInspectionForMissingServiceClassImplementatio
0 commit comments