Skip to content

Commit

Permalink
Replace splat operator with union operator
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieEtienne authored Mar 19, 2024
1 parent 3f39e72 commit cfb8e58
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Resources/AnnouncementResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public static function form(Form $form): Form
->rgb(),

Select::make('users')
->options([
'all' => 'all',
...User::all()->pluck('name', 'id'),
])
->options(['all' => 'all'] + User::all()->pluck('name', 'id'))
->multiple()
->required(),
]);
Expand Down

0 comments on commit cfb8e58

Please sign in to comment.