Skip to content

Commit f2ac046

Browse files
committed
MC-36802: SVC doesn't catch MINOR change in PATCH release when adding @api to a class
1 parent f48bbd0 commit f2ac046

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Helper/Node.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ public function isApiNode(PhpNode $node)
3232
if (is_array($comments) && !empty($comments)) {
3333
foreach ($comments as $comment) {
3434
if ($comment instanceof DocComment) {
35-
$result = $result || (strpos($comment->getText(),
36-
SemanticVersionChecker::ANNOTATION_API) !== false);
35+
$result = (strpos($comment->getText(),SemanticVersionChecker::ANNOTATION_API) !== false);
36+
if ($result) {
37+
break;
38+
}
3739
}
3840
}
3941
}

0 commit comments

Comments
 (0)