mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 11:33:49 +00:00
DX: rector rules upt to PHP 74
This commit is contained in:
@@ -94,9 +94,7 @@ class TaskController extends AbstractController
|
||||
$transitionInstance = array_values( // array_values needed to reset keys (array_filter preserves keys)
|
||||
array_filter(
|
||||
$workflow->getEnabledTransitions($task),
|
||||
static function (Transition $t) use ($transition) {
|
||||
return $t->getName() === $transition;
|
||||
}
|
||||
static fn(Transition $t) => $t->getName() === $transition
|
||||
)
|
||||
)[0];
|
||||
|
||||
|
Reference in New Issue
Block a user