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