Skip to content

Commit

Permalink
fix class cast issue for reference contributor Haehnchen#64
Browse files Browse the repository at this point in the history
  • Loading branch information
Haehnchen committed Aug 8, 2016
1 parent ee30954 commit b8fa3c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public boolean isReferenceTo(PsiElement psiElement) {

String classByContext = PhpElementsUtil.getFqnForClassNameByContext(element, text);
if(classByContext != null) {
return StringUtils.stripStart(((PhpClass) psiElement).getFQN(), "\\")
return StringUtils.stripStart(((PhpNamedElement) psiElement).getFQN(), "\\")
.equalsIgnoreCase(StringUtils.stripStart(fqn, "\\"));
}

Expand Down

0 comments on commit b8fa3c7

Please sign in to comment.