From 29837bdf4c21b81efc53a8bdf4f220e5ee6828e1 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Fri, 11 Oct 2024 23:38:29 +0900 Subject: [PATCH] Fix return type of QueueInterface::getInstance() --- common/framework/drivers/QueueInterface.php | 4 ++-- common/framework/drivers/queue/db.php | 4 ++-- common/framework/drivers/queue/dummy.php | 4 ++-- common/framework/drivers/queue/redis.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/framework/drivers/QueueInterface.php b/common/framework/drivers/QueueInterface.php index f3c5697f5..25acb16fb 100644 --- a/common/framework/drivers/QueueInterface.php +++ b/common/framework/drivers/QueueInterface.php @@ -11,9 +11,9 @@ interface QueueInterface * Create a new instance of the current Queue driver, using the given settings. * * @param array $config - * @return void + * @return QueueInterface */ - public static function getInstance(array $config): self; + public static function getInstance(array $config): QueueInterface; /** * Get the human-readable name of this Queue driver. diff --git a/common/framework/drivers/queue/db.php b/common/framework/drivers/queue/db.php index f92e5614f..f393c7de4 100644 --- a/common/framework/drivers/queue/db.php +++ b/common/framework/drivers/queue/db.php @@ -14,9 +14,9 @@ class DB implements QueueInterface * Create a new instance of the current Queue driver, using the given settings. * * @param array $config - * @return void + * @return QueueInterface */ - public static function getInstance(array $config): self + public static function getInstance(array $config): QueueInterface { return new self($config); } diff --git a/common/framework/drivers/queue/dummy.php b/common/framework/drivers/queue/dummy.php index 984bff83e..2996f7c98 100644 --- a/common/framework/drivers/queue/dummy.php +++ b/common/framework/drivers/queue/dummy.php @@ -18,9 +18,9 @@ class Dummy implements QueueInterface * Create a new instance of the current Queue driver, using the given settings. * * @param array $config - * @return void + * @return QueueInterface */ - public static function getInstance(array $config): self + public static function getInstance(array $config): QueueInterface { return new self($config); } diff --git a/common/framework/drivers/queue/redis.php b/common/framework/drivers/queue/redis.php index c5d0c17bc..ac6eb3074 100644 --- a/common/framework/drivers/queue/redis.php +++ b/common/framework/drivers/queue/redis.php @@ -19,9 +19,9 @@ class Redis implements QueueInterface * Create a new instance of the current Queue driver, using the given settings. * * @param array $config - * @return void + * @return QueueInterface */ - public static function getInstance(array $config): self + public static function getInstance(array $config): QueueInterface { return new self($config); }