We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0d05a commit 8efcf72Copy full SHA for 8efcf72
src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php
@@ -114,7 +114,7 @@ public function getChoicesForValues(array $values): array
114
$choices = [];
115
116
foreach ($values as $i => $givenValue) {
117
- if (\array_key_exists($givenValue, $this->choices)) {
+ if (\array_key_exists($givenValue ?? '', $this->choices)) {
118
$choices[$i] = $this->choices[$givenValue];
119
}
120
0 commit comments