From 66a11e4a3e3be4098b0273ee7408c19399540b75 Mon Sep 17 00:00:00 2001 From: viktorprogger Date: Fri, 20 Sep 2024 15:05:22 +0000 Subject: [PATCH] Apply Rector changes (CI) --- src/Worker/Worker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Worker/Worker.php b/src/Worker/Worker.php index 1b18190b..b369bb06 100644 --- a/src/Worker/Worker.php +++ b/src/Worker/Worker.php @@ -82,7 +82,7 @@ private function getHandler(string $name): ?callable if ($definition === null && $this->container->has($name)) { $handler = $this->container->get($name); if ($handler instanceof MessageHandlerInterface) { - $this->handlersCached[$name] = [$handler, 'handle']; + $this->handlersCached[$name] = $handler->handle(...); return $this->handlersCached[$name]; }