Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Job/CallbackJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use ReflectionFunction;
use function getcwd;
use function sprintf;
use function str_ends_with;
use function str_contains;
use function str_replace;
use const DIRECTORY_SEPARATOR;

Expand All @@ -29,7 +29,7 @@ public function getName(): string
$ref = new ReflectionFunction($this->callback);
$refName = $ref->getName();

if (str_ends_with($refName, '{closure}')) {
if (str_contains($refName, '{closure')) {
$name = sprintf(
'%s:%s',
str_replace(getcwd() . DIRECTORY_SEPARATOR, '', $ref->getFileName()),
Expand Down