[VarDumper] improve displaying cut closures

This commit is contained in:
Nicolas Grekas 2019-10-21 17:47:54 +02:00
parent 16d528504c
commit 2b0a11de02

View File

@ -28,6 +28,11 @@ class CutStub extends Stub
case 'object':
$this->type = self::TYPE_OBJECT;
$this->class = \get_class($value);
if ($value instanceof \Closure) {
ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE);
}
$this->cut = -1;
break;