Skip to content

Commit c071774

Browse files
committed
Add missing else branch when rendering arguments after arrays
1 parent 17772c5 commit c071774

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/CodeHelper/MethodParamsTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ private function getSourceForParams(): array
182182
if ($return[$currentIndex - 1] !== '[') {
183183
$return[$currentIndex - 1] .= ', ' . $tmpValue;
184184
}
185+
else {
186+
$return[] = $tmpValue;
187+
}
188+
185189
foreach ($value as $c) {
186190
$return[] = $c;
187191
$currentIndex += 1;

0 commit comments

Comments
 (0)