Add extra parameter

This commit is contained in:
Daniil Gentili 2019-09-18 21:45:08 +02:00
parent e43d32615f
commit 6c8a43debd
2 changed files with 472 additions and 468 deletions

View File

@ -217,6 +217,10 @@ class AnnotationsBuilder
}
$paramList .= '$'.$param->getName().', ';
}
if (!$hasVariadic) {
$paramList .= '$extra, ';
$doc .= 'array $extra = []';
}
$doc = \rtrim($doc, ', ');
$paramList = \rtrim($paramList, ', ');
$doc .= ")";

File diff suppressed because it is too large Load Diff