Skip to content

Commit

Permalink
add variadic
Browse files Browse the repository at this point in the history
  • Loading branch information
abbadon1334 committed Jul 11, 2019
1 parent 8644f9c commit 8798cbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Builder/PhpDomainBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,12 @@ private function addMethod(Method $method)
$typString = substr($typString, 1);
}
$paramItem = '* ';
$paramItem .= '**$' . $argument->getName() . '** ';
$paramItem .= '**';
if($argument->isVariadic())
{
$paramItem .= '...';
}
$paramItem .= '$' . $argument->getName() . '** ';
if ($typString !== NULL) {
$paramItem .= '(' . self::typesToRst($typString) . ') ';
}
Expand Down

0 comments on commit 8798cbc

Please sign in to comment.