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 fd8d787 commit aee960cCopy full SHA for aee960c
1 file changed
build/psalm/OcpSinceChecker.php
@@ -44,7 +44,7 @@ public static function afterClassLikeVisit(AfterClassLikeVisitEvent $event): voi
44
self::checkStatementComment($stmt, $statementsSource, 'constant');
45
}
46
47
- if ($stmt instanceof ClassMethod) {
+ if ($stmt instanceof ClassMethod && ($stmt->isPublic() || $stmt->isProtected())) {
48
self::checkStatementComment($stmt, $statementsSource, 'method');
49
50
0 commit comments