[VarDumper] improve displaying cut closures
This commit is contained in:
parent
16d528504c
commit
2b0a11de02
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user