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.
2 parents e57cc7a + 4922985 commit 190d975Copy full SHA for 190d975
ChoiceList/ArrayChoiceList.php
@@ -105,7 +105,7 @@ public function getChoicesForValues(array $values): array
105
$choices = [];
106
107
foreach ($values as $i => $givenValue) {
108
- if (\array_key_exists($givenValue, $this->choices)) {
+ if (\array_key_exists($givenValue ?? '', $this->choices)) {
109
$choices[$i] = $this->choices[$givenValue];
110
}
111
0 commit comments