Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 1220fce

Browse files
committed
chore: added a comment to clarify code
1 parent 1a88b6d commit 1220fce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Rule/EachKey.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function assert(mixed $value, ?string $name = null): void
3535
'name' => $name,
3636
'key' => $key,
3737
'element' => $element,
38+
// Replaces string "value" with string "key value" to get a more intuitive error message
3839
'message' => \str_replace(' value ', ' key value ', $exception->getMessage())
3940
]
4041
);

0 commit comments

Comments
 (0)