Commit 2d713c1
committed
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_ExtensionInterface1 parent 75d741d commit 2d713c1
File tree
2 files changed
+2
-2
lines changed- src
- main/java/fr/adrienbrault/idea/symfony2plugin/util/dict
- test/java/fr/adrienbrault/idea/symfony2plugin/tests/codeInspection/service
2 files changed
+2
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments