### Symfony version(s) affected 7.0.0 ### Description @HeahDude in https://github.com/symfony/symfony/pull/51043 you removed `FormEvent::setData()`. But `ChoiceType::buildForm()` still contains this line at https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php#L162 ```php $event->setData($knownValues); ``` But this will now lead to a `BadMethodCallException` in [`PostSetDataEvent`](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Form/Event/PostSetDataEvent.php#L25) and [`PostSubmitEvent`](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Form/Event/PostSubmitEvent.php#L25). Did you overlook this? Or is this line never executed in fact (and thus could be deleted)? ### How to reproduce See above. ### Possible Solution _No response_ ### Additional Context _No response_