Skip to content

Commit

Permalink
Merge pull request #1183 from bohdan-harniuk/1180-fix-ClassCastException
Browse files Browse the repository at this point in the history
1180: Fixed ClassCastException
  • Loading branch information
VitaliyBoyko committed Sep 12, 2022
2 parents 1bbc95e + 8ac85ad commit 84ee9aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private <E extends PhpNamedElement> boolean isValidFqn(final E candidate) {
PhpClass targetClass = null;

if (candidate instanceof Method) {
targetClass = (PhpClass) candidate.getParent();
targetClass = ((Method) candidate).getContainingClass();
} else if (candidate instanceof PhpClass) {
targetClass = (PhpClass) candidate;
}
Expand Down

0 comments on commit 84ee9aa

Please sign in to comment.