Skip to content

Commit

Permalink
closure spl fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 16, 2024
1 parent cbfde1f commit 70e1b74
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Renderer/Rich/ClosurePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public function renderValue(Value $o): ?string
$header .= '<dfn>'.$this->renderer->escape($s).'('.$this->renderer->escape($o->getParams()).')</dfn> ';
}

$header .= '<var>Closure</var>';
if (isset($o->spl_object_id)) {
$header .= '#'.((int) $o->spl_object_id);
}
$header .= '<var>Closure</var>#'.((int) $o->spl_object_id);
$header .= ' '.$this->renderer->escape(Kint::shortenPath($o->filename)).':'.(int) $o->startline;

$header = $this->renderer->renderHeaderWrapper($o, (bool) \strlen($children), $header);
Expand Down

0 comments on commit 70e1b74

Please sign in to comment.