Symfony version(s) affected
7.0
Description
Warning: array_flip(): Can only flip string and integer values, entry skipped
How to reproduce
pass null value as an value of ChoiceType that has multiple option set to true (array of values).
{
"choice": [null, ...]
}
Possible Solution
filter null values from array or convert them to empty string
Additional Context
failing line: https://github.com/symfony/form/blob/7.0/Extension/Core/Type/ChoiceType.php#L125