Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1e84452

Browse filesBrowse files
[2.8][VarDumper] Fix PHP 7.1 compat
1 parent 536da69 commit 1e84452
Copy full SHA for 1e84452

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Caster/ReflectionCaster.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static function castType(\ReflectionType $c, array $a, Stub $stub, $isNes
8484
$prefix = Caster::PREFIX_VIRTUAL;
8585

8686
$a += array(
87-
$prefix.'type' => $c->__toString(),
87+
$prefix.'name' => method_exists('ReflectionType', 'getName') ? $c->getName() : $c->__toString(),
8888
$prefix.'allowsNull' => $c->allowsNull(),
8989
$prefix.'isBuiltin' => $c->isBuiltin(),
9090
);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.