We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48bbd0 commit f2ac046Copy full SHA for f2ac046
src/Helper/Node.php
@@ -32,8 +32,10 @@ public function isApiNode(PhpNode $node)
32
if (is_array($comments) && !empty($comments)) {
33
foreach ($comments as $comment) {
34
if ($comment instanceof DocComment) {
35
- $result = $result || (strpos($comment->getText(),
36
- SemanticVersionChecker::ANNOTATION_API) !== false);
+ $result = (strpos($comment->getText(),SemanticVersionChecker::ANNOTATION_API) !== false);
+ if ($result) {
37
+ break;
38
+ }
39
}
40
41
0 commit comments