8000 [VarDumper] Fix dumping by-ref variadics · symfony/symfony@28ec361 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28ec361

Browse files
[VarDumper] Fix dumping by-ref variadics
1 parent cf9f541 commit 28ec361

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, arra
125125

126126
foreach ($c->getParameters() as $v) {
127127
$k = '$'.$v->name;
128-
if ($v->isPassedByReference()) {
129-
$k = '&'.$k;
130-
}
131128
if (method_exists($v, 'isVariadic') && $v->isVariadic()) {
132129
$k = '...'.$k;
133130
}
131+
if ($v->isPassedByReference()) {
132+
$k = '&'.$k;
133+
}
134134
$a[$prefix.'parameters'][$k] = $v;
135135
}
136136

0 commit comments

Comments
 (0)
0