Skip to content

Commit 1fe769e

Browse files
[VarDumper] improve displaying cut closures
1 parent 3a128d6 commit 1fe769e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Caster/CutStub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function __construct($value)
2828
case 'object':
2929
$this->type = self::TYPE_OBJECT;
3030
$this->class = \get_class($value);
31+
32+
if ($value instanceof \Closure) {
33+
ReflectionCaster::castClosure($value, [], $this, true, Caster::EXCLUDE_VERBOSE);
34+
}
35+
3136
$this->cut = -1;
3237
break;
3338

0 commit comments

Comments
 (0)