We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5efa528 commit 8ac22beCopy full SHA for 8ac22be
generator/src/WritePhpFunction.php
@@ -139,7 +139,10 @@ private function displayParamsWithType(array $params): string
139
$optDetected = false;
140
141
foreach ($params as $param) {
142
- $paramAsString = $param->getSignatureType().' ';
+ $paramAsString = $param->getSignatureType();
143
+ if ($paramAsString !== '') {
144
+ $paramAsString .= ' ';
145
+ }
146
147
$paramName = $param->getParameter();
148
if ($param->isVariadic()) {
0 commit comments