Skip to content

Commit 9d7731b

Browse files
committed
Merge branch '4.4' into 5.1
2 parents 018c0c8 + f636683 commit 9d7731b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Registry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)