mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
cs: Enable risky rule static_lambda
.
This commit is contained in:
@@ -91,7 +91,7 @@ class TaskController extends AbstractController
|
||||
$transitionInstance = array_values( // array_values needed to reset keys (array_filter preserves keys)
|
||||
array_filter(
|
||||
$workflow->getEnabledTransitions($task),
|
||||
function (Transition $t) use ($transition) {
|
||||
static function (Transition $t) use ($transition) {
|
||||
return $t->getName() === $transition;
|
||||
}
|
||||
))[0];
|
||||
|
Reference in New Issue
Block a user