Skip to content

Commit 61fdc07

Browse files
committed
Merge branch '5.1' into 5.x
2 parents 89ba3f5 + 092d0d1 commit 61fdc07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Registry.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function addWorkflow(WorkflowInterface $workflow, WorkflowSupportStrategy
2929

3030
public function has(object $subject, string $workflowName = null): bool
3131
{
32-
foreach ($this->workflows as list($workflow, $supportStrategy)) {
32+
foreach ($this->workflows as [$workflow, $supportStrategy]) {
3333
if ($this->supports($workflow, $supportStrategy, $subject, $workflowName)) {
3434
return true;
3535
}
@@ -45,7 +45,7 @@ public function get(object $subject, string $workflowName = null)
4545
{
4646
$matched = [];
4747

48-
foreach ($this->workflows as list($workflow, $supportStrategy)) {
48+
foreach ($this->workflows as [$workflow, $supportStrategy]) {
4949
if ($this->supports($workflow, $supportStrategy, $subject, $workflowName)) {
5050
$matched[] = $workflow;
5151
}
@@ -72,7 +72,7 @@ public function get(object $subject, string $workflowName = null)
7272
public function all(object $subject): array
7373
{
7474
$matched = [];
75-
foreach ($this->workflows as list($workflow, $supportStrategy)) {
75+
foreach ($this->workflows as [$workflow, $supportStrategy]) {
7676
if ($supportStrategy->supports($workflow, $subject)) {
7777
$matched[] = $workflow;
7878
}

0 commit comments

Comments
 (0)