Open arogachev opened 1 year ago
Similar to #556.
$rule = new class () extends Composite { public function getRules(): array { return [ new Nested([ 'name' => [new Required(), new Length(min: 1)], ]), ]; } }; $result = (new Validator())->validate([], $rule); $errors = $result->getErrorMessagesIndexedByPath();
Expected:
[ 'name' => [ 'Value not passed.', 'The value must be a string.', ], ],
Actual:
[ 'name' => [ 'Value cannot be blank.', 'The value must be a string.', ], ],
Similar to #556.
Expected:
Actual: