Skip to content

Commit

Permalink
[VarDumper] Fix dumping by-ref variadics
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Dec 15, 2016
1 parent cf9f541 commit 28ec361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php
Expand Up @@ -125,12 +125,12 @@ public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, arra

foreach ($c->getParameters() as $v) {
$k = '$'.$v->name;
if ($v->isPassedByReference()) {
$k = '&'.$k;
}
if (method_exists($v, 'isVariadic') && $v->isVariadic()) {
$k = '...'.$k;
}
if ($v->isPassedByReference()) {
$k = '&'.$k;
}
$a[$prefix.'parameters'][$k] = $v;
}

Expand Down

0 comments on commit 28ec361

Please sign in to comment.