Add extra parameter
This commit is contained in:
parent
e43d32615f
commit
6c8a43debd
@ -217,6 +217,10 @@ class AnnotationsBuilder
|
|||||||
}
|
}
|
||||||
$paramList .= '$'.$param->getName().', ';
|
$paramList .= '$'.$param->getName().', ';
|
||||||
}
|
}
|
||||||
|
if (!$hasVariadic) {
|
||||||
|
$paramList .= '$extra, ';
|
||||||
|
$doc .= 'array $extra = []';
|
||||||
|
}
|
||||||
$doc = \rtrim($doc, ', ');
|
$doc = \rtrim($doc, ', ');
|
||||||
$paramList = \rtrim($paramList, ', ');
|
$paramList = \rtrim($paramList, ', ');
|
||||||
$doc .= ")";
|
$doc .= ")";
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user