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 8e26904 + 190d975 commit 9e63e78Copy full SHA for 9e63e78
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