diff --git a/common/framework/drivers/push/base.php b/common/framework/drivers/push/base.php index da0ac59ca..8f4bce115 100644 --- a/common/framework/drivers/push/base.php +++ b/common/framework/drivers/push/base.php @@ -2,10 +2,12 @@ namespace Rhymix\Framework\Drivers\Push; +use Rhymix\Framework\Drivers\PushInterface; + /** * The base class for other Push drivers. */ -abstract class Base implements \Rhymix\Framework\Drivers\PushInterface +abstract class Base implements PushInterface { /** * The configuration is stored here. @@ -30,9 +32,9 @@ abstract class Base implements \Rhymix\Framework\Drivers\PushInterface * Create a new instance of the current Push driver, using the given settings. * * @param array $config - * @return Base + * @return PushInterface */ - public static function getInstance(array $config): Base + public static function getInstance(array $config): PushInterface { return new static($config); } diff --git a/common/framework/drivers/pushinterface.php b/common/framework/drivers/pushinterface.php index b7947b818..16c6f35d9 100644 --- a/common/framework/drivers/pushinterface.php +++ b/common/framework/drivers/pushinterface.php @@ -13,7 +13,7 @@ interface PushInterface * @param array $config * @return void */ - public static function getInstance(array $config): object; + public static function getInstance(array $config): PushInterface; /** * Get the human-readable name of this Push driver.