From cb8dd4683039fb7fe26edc9225e0815008a8b52e Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 5 May 2024 11:19:50 +0545 Subject: [PATCH] match worker name instead of substring --- src/Platform/Platform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Platform/Platform.php b/src/Platform/Platform.php index cd2e5ce..2b63677 100644 --- a/src/Platform/Platform.php +++ b/src/Platform/Platform.php @@ -190,7 +190,7 @@ protected function initWorker(array $services, string $workerName): void $worker = $this->worker; foreach ($services as $service) { foreach ($service->getActions() as $key => $action) { - if ($action->getType() == Action::TYPE_DEFAULT && ! str_contains(strtolower($key), $workerName)) { + if ($action->getType() == Action::TYPE_DEFAULT && strtolower($key) !== $workerName) { continue; } switch ($action->getType()) {