From 3fe4f6a73f78960c19c1d35524be552fa4e518b7 Mon Sep 17 00:00:00 2001 From: viktorprogger Date: Sun, 8 Dec 2024 21:40:05 +0500 Subject: [PATCH] Bugfix --- stubs/StubAdapter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stubs/StubAdapter.php b/stubs/StubAdapter.php index b47c850b..ea423db4 100644 --- a/stubs/StubAdapter.php +++ b/stubs/StubAdapter.php @@ -7,6 +7,7 @@ use Yiisoft\Queue\Adapter\AdapterInterface; use Yiisoft\Queue\Enum\JobStatus; use Yiisoft\Queue\Message\MessageInterface; +use Yiisoft\Queue\QueueInterface; /** * Stub adapter that does nothing. Job status is always "done". @@ -35,4 +36,9 @@ public function withChannel(string $channel): AdapterInterface { return clone $this; } + + public function getChannelName(): string + { + return QueueInterface::DEFAULT_CHANNEL_NAME; + } }