From b323ea9994904ede00dc99a0fb4753c3ac94c938 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 27 Apr 2026 17:40:30 +0200 Subject: [PATCH] fix(since): Ignore private methods in OCP fix(since): Ignore private methods in OCP Signed-off-by: Daniel Kesselberg [skip ci] --- build/psalm/OcpSinceChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/psalm/OcpSinceChecker.php b/build/psalm/OcpSinceChecker.php index 864f47070c2..9323b07feb7 100644 --- a/build/psalm/OcpSinceChecker.php +++ b/build/psalm/OcpSinceChecker.php @@ -44,7 +44,7 @@ class OcpSinceChecker implements Psalm\Plugin\EventHandler\AfterClassLikeVisitIn self::checkStatementComment($stmt, $statementsSource, 'constant'); } - if ($stmt instanceof ClassMethod) { + if ($stmt instanceof ClassMethod && ($stmt->isPublic() || $stmt->isProtected())) { self::checkStatementComment($stmt, $statementsSource, 'method'); }