Skip to content

Commit

Permalink
Merge pull request #58 from gam6itko/fake_queue_handler
Browse files Browse the repository at this point in the history
FakeQueue fix job name as string
  • Loading branch information
butschster committed Jun 7, 2023
2 parents a993c51 + 40af199 commit 97ea31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Queue/FakeQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function push(string $name, mixed $payload = [], OptionsInterface $option
{
$this->jobs[$name][] = [
'name' => $name,
'handler' => $this->registry->getHandler($name),
'handler' => \class_exists($name) ? $this->registry->getHandler($name): null,
'payload' => $payload,
'options' => $options ?? new Options(),
];
Expand Down

0 comments on commit 97ea31e

Please sign in to comment.