Fix return type of QueueInterface::getInstance()

This commit is contained in:
Kijin Sung 2024-10-11 23:38:29 +09:00
parent 4b0b485a13
commit 29837bdf4c
4 changed files with 8 additions and 8 deletions

View file

@ -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.

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}