Skip to content

Commit aee960c

Browse files
committed
fix(since): Ignore private methods in OCP
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent fd8d787 commit aee960c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/psalm/OcpSinceChecker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function afterClassLikeVisit(AfterClassLikeVisitEvent $event): voi
4444
self::checkStatementComment($stmt, $statementsSource, 'constant');
4545
}
4646

47-
if ($stmt instanceof ClassMethod) {
47+
if ($stmt instanceof ClassMethod && ($stmt->isPublic() || $stmt->isProtected())) {
4848
self::checkStatementComment($stmt, $statementsSource, 'method');
4949
}
5050

0 commit comments

Comments
 (0)