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 d9e186c commit ebdc48dCopy full SHA for ebdc48d
ChoiceList/Loader/AbstractChoiceLoader.php
@@ -59,7 +59,7 @@ public function loadValuesForChoices(array $choices, callable $value = null)
59
60
if ($value) {
61
// if a value callback exists, use it
62
- return array_map(function ($item) use ($value): string { return $value($item); }, $choices);
+ return array_map(function ($item) use ($value) { return (string) $value($item); }, $choices);
63
}
64
65
return $this->doLoadValuesForChoices($choices);
0 commit comments