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 56e4a00 commit 0ed2587Copy full SHA for 0ed2587
src/Filters/SelectFilterTrait.php
@@ -78,9 +78,7 @@ protected function formattedValues(): array
78
79
if (! is_array(collect($values)->first())) {
80
return collect($values)
81
- ->map(function ($label, $id) {
82
- return compact('id', 'label');
83
- })
+ ->map(fn ($label, $id) => compact('id', 'label'))
84
->values()
85
->all();
86
}
0 commit comments