Skip to content

Commit f636683

Browse files
committed
Use short array deconstruction syntax.
1 parent 0d86fe5 commit f636683

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Registry.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function get($subject, $workflowName = null)
4949
{
5050
$matched = [];
5151

52-
foreach ($this->workflows as list($workflow, $supportStrategy)) {
52+
foreach ($this->workflows as [$workflow, $supportStrategy]) {
5353
if ($this->supports($workflow, $supportStrategy, $subject, $workflowName)) {
5454
$matched[] = $workflow;
5555
}
@@ -78,7 +78,7 @@ public function get($subject, $workflowName = null)
7878
public function all($subject): array
7979
{
8080
$matched = [];
81-
foreach ($this->workflows as list($workflow, $supportStrategy)) {
81+
foreach ($this->workflows as [$workflow, $supportStrategy]) {
8282
if ($supportStrategy->supports($workflow, $subject)) {
8383
$matched[] = $workflow;
8484
}

0 commit comments

Comments
 (0)