Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31d09ac

Browse files
[VarDumper] Fix return type dumping
1 parent 80182fa commit 31d09ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ public static function castFunctionAbstract(\ReflectionFunctionAbstract $c, arra
114114
'this' => 'getClosureThis',
115115
));
116116

117+
if (isset($a[$prefix.'returnType'])) {
118+
$a[$prefix.'returnType'] = (string) $a[$prefix.'returnType'];
119+
}
117120
if (isset($a[$prefix.'this'])) {
118121
$a[$prefix.'this'] = new CutStub($a[$prefix.'this']);
119122
}

0 commit comments

Comments
 (0)