You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$violations = $this->validator->validate($model->bars, newCount([
'min' => 3,
'max' => 3,
]));
/** @var ConstraintViolationInterface $violation */foreach ($violationsas$violation) {
dump(sprintf('%s: %s', $violation->getPropertyPath(), $violation->getMessage()));
}
/* Got: ": This collection should contain exactly 3 elements." "[0].name: This value should not be blank." <- not expected "[1].name: This value should not be blank." <- not expected */
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected: 4.1.3
Description
When passing constraint to
validate
method I've got violations from annotation constrains.How to reproduce
https://github.com/BoShurik/symfony-validator-issue
The text was updated successfully, but these errors were encountered: