We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c071774 commit 4d14ee1Copy full SHA for 4d14ee1
1 file changed
src/CodeHelper/MethodParamsTrait.php
@@ -163,8 +163,8 @@ private function getSourceForParams(): array
163
else {
164
foreach ($param->getSourceArray() as $v) {
165
$return[] = $v;
166
+ $currentIndex += 1;
167
}
- $currentIndex += 1;
168
169
$previousArray = true;
170
continue;
@@ -179,7 +179,7 @@ private function getSourceForParams(): array
179
if (!is_scalar($tmpValue)) {
180
throw InvalidCode::invalidType();
181
182
- if ($return[$currentIndex - 1] !== '[') {
+ if (!$noCustomFirstLine && $return[$currentIndex - 1] !== '[') {
183
$return[$currentIndex - 1] .= ', ' . $tmpValue;
184
185
0 commit comments