Skip to content

Commit

Permalink
Merge pull request #99 from staabm/php84
Browse files Browse the repository at this point in the history
Adjust pretty name of closures on PHP 8.4
  • Loading branch information
freekmurze authored May 27, 2024
2 parents 79b77d0 + 1ff58c6 commit 25252b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Backtrace.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function getHash(): string
}, $this->getArguments());

$prefix = $this->getObjectName() . $this->getFunctionName();
if (str_contains($prefix, '{closure}')) {
if (str_contains($prefix, '{closure')) {
$prefix = $this->zeroStack['line'];
}

Expand Down

0 comments on commit 25252b8

Please sign in to comment.