Skip to content

Commit

Permalink
[Form] fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 17, 2023
1 parent d9e186c commit ebdc48d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChoiceList/Loader/AbstractChoiceLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function loadValuesForChoices(array $choices, callable $value = null)

if ($value) {
// if a value callback exists, use it
return array_map(function ($item) use ($value): string { return $value($item); }, $choices);
return array_map(function ($item) use ($value) { return (string) $value($item); }, $choices);
}

return $this->doLoadValuesForChoices($choices);
Expand Down

0 comments on commit ebdc48d

Please sign in to comment.