Skip to content

Commit

Permalink
Update BarPanel.php
Browse files Browse the repository at this point in the history
Added compatibility with Tracy 2.6
  • Loading branch information
Radovan Kepák authored and f3l1x committed Apr 27, 2021
1 parent c730924 commit 6a38558
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Diagnostics/BarPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ public function getTab(): string

function getPanel(): string
{
return Helpers::capture(function (): void {
ob_start(function () {});
try {
require __DIR__ . '/BarPanel.phtml';
});
return ob_get_clean();
} catch (\Throwable $e) {
ob_get_clean();
throw $e;
}
}
}

0 comments on commit 6a38558

Please sign in to comment.