Closed
Description
Symfony version(s) affected
7.1.0-RC1
Description
In CharsetValidator.php line 41:
[TypeError]
implode(): Argument 2 ($array) must be of type ?array, string given
How to reproduce
$this->validator->validate(substr('á', 0, 1), new Assert\Charset('UTF-8'));
Possible Solution
CharsetValidator.php line 41: ->setParameter('{{ encodings }}', implode(', ', (array) $constraint->encodings))
Additional Context
No response