Skip to content

Commit

Permalink
ClassFinder - getFromTypedElement: used getClassesInFile
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Jul 12, 2015
1 parent 860969d commit 48cd18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cz/juzna/intellij/nette/utils/ClassFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static Collection<PhpClass> getFromTypedElement(PhpTypedElement el) {
if (type.isEmpty() || type.toString().trim().equals("")) {
return Collections.emptyList();
}
ClassFinder finder = new ClassFinder(PhpIndex.getInstance(((PsiElement) el).getProject()));
ClassFinder finder = new ClassFinder(PhpIndex.getInstance(((PsiElement) el).getProject()), PhpPsiUtil.getClassesInFile((PsiElement) el));

return finder.find(el.getType());
}
Expand Down

0 comments on commit 48cd18b

Please sign in to comment.