Skip to content

Commit 9f80429

Browse files
authored
Merge pull request #1478 from Haehnchen/feature/array-check
fix possible long signature truncate and split on type resolver for r…
2 parents 666e154 + fe3fc26 commit 9f80429

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/fr/adrienbrault/idea/symfony2plugin/doctrine/ObjectManagerFindContextTypeProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public PhpType getType(PsiElement e) {
7676
@Override
7777
public PhpType complete(String s, Project project) {
7878
String[] split = s.substring(2).split(String.valueOf(TRIM_KEY));
79+
if (split.length < 2) {
80+
return null;
81+
}
7982

8083
String signature = split[0];
8184
String methodName = split[1];

0 commit comments

Comments
 (0)