Skip to content

Commit db63919

Browse files
committed
SprintfFunctionDynamicReturnTypeExtension - change code for PHP 7.3-
1 parent 1f95570 commit db63919

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Type/Php/SprintfFunctionDynamicReturnTypeExtension.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ private function combinations(array $arrays): iterable
136136

137137
foreach ($head as $elem) {
138138
foreach ($this->combinations($arrays) as $combination) {
139-
yield [$elem, ...$combination];
139+
$comb = [$elem];
140+
foreach ($combination as $c) {
141+
$comb[] = $c;
142+
}
143+
yield $comb;
140144
}
141145
}
142146
}

0 commit comments

Comments
 (0)