Skip to content

Commit

Permalink
Adjust pretty name of closures on PHP 8.4
Browse files Browse the repository at this point in the history
related to php/php-src#13550

see analog symfony change: symfony/symfony#54614
  • Loading branch information
staabm authored May 25, 2024
1 parent e7d89f4 commit 8415316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Analysis/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function backtrace($options = [])
foreach ($backtrace as $i => $trace) {
$trace += $traceDefaults;
if (strpos($trace['function'], 'Closure$') === 0 ||
strpos($trace['function'], '{closure}') !== false ||
strpos($trace['function'], '{closure') !== false ||
in_array($trace['function'], $ignoreFunctions)) {
continue;
}
Expand Down

0 comments on commit 8415316

Please sign in to comment.