Skip to content

Commit

Permalink
Skip getting parameters for anonymous closure
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Jul 2, 2024
1 parent df54905 commit dd790e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/HtmlRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function renderCallStack(Throwable $t, array $trace = []): string
$function = null;
if (!empty($trace[$i]['function']) && $trace[$i]['function'] !== 'unknown') {
$function = $trace[$i]['function'];
if ($class !== null) {
if ($class !== null && strpos($function, '{closure}') === false) {
$parameters = (new \ReflectionMethod($class, $function))->getParameters();
}
}
Expand Down

0 comments on commit dd790e5

Please sign in to comment.