Skip to content

Commit e55ba57

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 d14e93e commit e55ba57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Job/CallbackJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function getName(): string
2929
$ref = new ReflectionFunction($this->callback);
3030
$refName = $ref->getName();
3131

32-
if (str_ends_with($refName, '{closure}')) {
32+
if (str_contains($refName, '{closure')) {
3333
$name = sprintf(
3434
'%s:%s',
3535
str_replace(getcwd() . DIRECTORY_SEPARATOR, '', $ref->getFileName()),

0 commit comments

Comments
 (0)