Skip to content

Commit ebdc48d

Browse files
[Form] fix merge
1 parent d9e186c commit ebdc48d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChoiceList/Loader/AbstractChoiceLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function loadValuesForChoices(array $choices, callable $value = null)
5959

6060
if ($value) {
6161
// if a value callback exists, use it
62-
return array_map(function ($item) use ($value): string { return $value($item); }, $choices);
62+
return array_map(function ($item) use ($value) { return (string) $value($item); }, $choices);
6363
}
6464

6565
return $this->doLoadValuesForChoices($choices);

0 commit comments

Comments
 (0)