Skip to content

Commit 8415316

Browse files
authored
Adjust pretty name of closures on PHP 8.4
related to php/php-src#13550 see analog symfony change: symfony/symfony#54614
1 parent e7d89f4 commit 8415316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analysis/Debugger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function backtrace($options = [])
9999
foreach ($backtrace as $i => $trace) {
100100
$trace += $traceDefaults;
101101
if (strpos($trace['function'], 'Closure$') === 0 ||
102-
strpos($trace['function'], '{closure}') !== false ||
102+
strpos($trace['function'], '{closure') !== false ||
103103
in_array($trace['function'], $ignoreFunctions)) {
104104
continue;
105105
}

0 commit comments

Comments
 (0)