Skip to content

Commit a226266

Browse files
committed
Adjust pretty name of closures on PHP 8.4
related to php/php-src#13550 see analog symfony change: symfony/symfony#54614
1 parent 74b83e1 commit a226266

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)