Skip to content

Commit 31aa66c

Browse files
authored
Merge pull request #1254 from byWulf/master
Symfony 4.2: Translation detection fixed for new TranslatorInterface namespace
2 parents c91da36 + c4885ae commit 31aa66c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/translation/dict/TranslationUtil.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
public class TranslationUtil {
5757
public static MethodMatcher.CallToSignature[] PHP_TRANSLATION_SIGNATURES = new MethodMatcher.CallToSignature[] {
5858
new MethodMatcher.CallToSignature("\\Symfony\\Component\\Translation\\TranslatorInterface", "trans"),
59-
new MethodMatcher.CallToSignature("\\Symfony\\Component\\Translation\\TranslatorInterface", "transChoice")
59+
new MethodMatcher.CallToSignature("\\Symfony\\Component\\Translation\\TranslatorInterface", "transChoice"),
60+
new MethodMatcher.CallToSignature("\\Symfony\\Contracts\\Translation\\TranslatorInterface", "trans"),
61+
new MethodMatcher.CallToSignature("\\Symfony\\Contracts\\Translation\\TranslatorInterface", "transChoice")
6062
};
6163

6264
private static final String[] XLIFF_XPATH = {

0 commit comments

Comments
 (0)