Skip to content

Commit

Permalink
Fixed TestCaseAnnotationInspection
Browse files Browse the repository at this point in the history
  • Loading branch information
mesour committed Feb 19, 2020
1 parent 799fc87 commit 5dc183c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified intellij-nette-tester.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public void visitPhpClass(PhpClass phpClass) {
}

PhpDocComment docComment = phpClass.getDocComment();
if (docComment == null || docComment.getTagElementsByName("@testCase").length == 0) {
holder.registerProblem(phpClass, TesterBundle.message("inspections.annotation.description"), QUICK_FIX);
if (phpClass.getIdentifyingElement() != null && (docComment == null || docComment.getTagElementsByName("@testCase").length == 0)) {
holder.registerProblem(phpClass.getIdentifyingElement(), TesterBundle.message("inspections.annotation.description"), QUICK_FIX);
}
}
};
Expand Down

0 comments on commit 5dc183c

Please sign in to comment.