Skip to content

Commit

Permalink
[VarDumper] improve displaying cut closures
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 21, 2019
1 parent 3a128d6 commit 1fe769e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Caster/CutStub.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ public function __construct($value)
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;

Expand Down

0 comments on commit 1fe769e

Please sign in to comment.