Skip to content

Commit 883b5d8

Browse files
committed
fix api issues
1 parent a3debec commit 883b5d8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/TwigTemplateCompletionContributor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ protected void addCompletions(@NotNull CompletionParameters parameters, Processi
564564
return;
565565
}
566566

567-
resultSet.addAllElements(TwigUtil.getTwigLookupElements(parameters.getPosition().getProject(), Collections.emptyList()));
567+
resultSet.addAllElements(TwigUtil.getTwigLookupElements(parameters.getPosition().getProject()));
568568
}
569569
}
570570

src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/util/TwigUtil.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,14 @@ public static Collection<PsiElement> getTwigMacroTargets(final Project project,
15241524

15251525
/**
15261526
* Lookup elements for Twig files
1527-
* @return
1527+
*/
1528+
@NotNull
1529+
public static Collection<LookupElement> getTwigLookupElements(@NotNull Project project) {
1530+
return getTwigLookupElements(project, Collections.emptyList());
1531+
}
1532+
1533+
/**
1534+
* Lookup elements for Twig files
15281535
*/
15291536
@NotNull
15301537
public static Collection<LookupElement> getTwigLookupElements(@NotNull Project project, @NotNull Collection<String> highlight) {

0 commit comments

Comments
 (0)