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

Commit c8a1bfb

Browse files
committed
chore: improved EachKey error message
1 parent 2b3089a commit c8a1bfb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ChainedValidatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function country(
2525

2626
public function eachKey(
2727
Validator $validator,
28-
string $message = '{{ message }}'
28+
string $message = 'Invalid key: {{ message }}'
2929
): ChainedValidatorInterface&Validator;
3030

3131
public function eachValue(

src/Rule/EachKey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class EachKey extends AbstractRule implements RuleInterface
1111
{
1212
public function __construct(
1313
private readonly Validator $validator,
14-
private readonly string $message = '{{ message }}'
14+
private readonly string $message = 'Invalid key: {{ message }}'
1515
) {}
1616

1717
public function assert(mixed $value, string $name): void

src/StaticValidatorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static function country(
2424

2525
public static function eachKey(
2626
Validator $validator,
27-
string $message = '{{ message }}'
27+
string $message = 'Invalid key: {{ message }}'
2828
): ChainedValidatorInterface&Validator;
2929

3030
public static function eachValue(

0 commit comments

Comments
 (0)