Skip to content

Commit

Permalink
fix: Serialization of Closure is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jun 29, 2021
1 parent 7ea27f0 commit e50f6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Component/Profiler/TwigDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public function getTemplateData(): array

public function lateCollect()
{
$this->data['renders'] = $this->twig->getTemplateData();
$this->data['renders'] = json_decode(json_encode($this->twig->getTemplateData()), true);

return parent::lateCollect(); // TODO: Change the autogenerated stub
return parent::lateCollect();
}
}

0 comments on commit e50f6bb

Please sign in to comment.