[2.8][VarDumper] Fix PHP 7.1 compat

This commit is contained in:
Nicolas Grekas 2016-09-29 12:10:32 +01:00
parent 536da69a49
commit 1e84452acb

View File

@ -84,7 +84,7 @@ class ReflectionCaster
$prefix = Caster::PREFIX_VIRTUAL;
$a += array(
$prefix.'type' => $c->__toString(),
$prefix.'name' => method_exists('ReflectionType', 'getName') ? $c->getName() : $c->__toString(),
$prefix.'allowsNull' => $c->allowsNull(),
$prefix.'isBuiltin' => $c->isBuiltin(),
);