diff --git a/src/Queue/FakeQueue.php b/src/Queue/FakeQueue.php index d8d3427..a7fd25d 100644 --- a/src/Queue/FakeQueue.php +++ b/src/Queue/FakeQueue.php @@ -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(), ];