mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-01 20:43:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -218,13 +218,9 @@ class SingleTaskListType extends AbstractType
|
||||
$users = $this->getUsersAssigneedToTask($options);
|
||||
$choices = array_combine(
|
||||
// get usernames
|
||||
array_map(static function (User $user) {
|
||||
return $user->getUsername();
|
||||
}, $users),
|
||||
array_map(static fn(User $user) => $user->getUsername(), $users),
|
||||
// get ids
|
||||
array_map(static function (User $user) {
|
||||
return $user->getId();
|
||||
}, $users)
|
||||
array_map(static fn(User $user) => $user->getId(), $users)
|
||||
);
|
||||
$choices['Unassigned'] = '_unassigned';
|
||||
|
||||
|
Reference in New Issue
Block a user