refactor: Rev::matches replaces the inline rev checks
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -185,7 +185,7 @@ final class PostReplaceWithCopyAbility implements Ability
|
||||
);
|
||||
}
|
||||
|
||||
if (! isset($input['rev']) || $input['rev'] !== Rev::ofPost($original)) {
|
||||
if (! Rev::matches($input, $original)) {
|
||||
return Errors::revMismatch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user