We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fe4296 commit c8388e2Copy full SHA for c8388e2
src/main/java/fr/adrienbrault/idea/symfony2plugin/dic/container/util/ServiceContainerUtil.java
@@ -731,6 +731,11 @@ public static Collection<PsiElement> getTargetsForConstant(@NotNull Project proj
731
contents = contents.replaceAll(":+", ":");
732
String[] split = contents.split(":");
733
734
+ if (split.length < 2) {
735
+ // Empty const name e.g. "\\App\\Foo::"
736
+ return Collections.emptyList();
737
+ }
738
+
739
Collection<PsiElement> psiElements = new ArrayList<>();
740
for (PhpClass phpClass : PhpElementsUtil.getClassesInterface(project, split[0])) {
741
Field fieldByName = phpClass.findFieldByName(split[1], true);
0 commit comments