mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix ambiguous 'object' type in PHP < 7.2
This commit is contained in:
parent
1e21c8f43b
commit
6670a264f1
3 changed files with 8 additions and 10 deletions
|
|
@ -42,9 +42,9 @@ class APNs extends Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
*
|
||||
* @param object $message
|
||||
* @param array $tokens
|
||||
* @return object
|
||||
* @return \stdClass
|
||||
*/
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens)
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens): \stdClass
|
||||
{
|
||||
$output = new \stdClass;
|
||||
$output->success = [];
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
namespace Rhymix\Framework\Drivers\Push;
|
||||
|
||||
use stdClass;
|
||||
|
||||
/**
|
||||
* The base class for other Push drivers.
|
||||
*/
|
||||
|
|
@ -32,9 +30,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 object
|
||||
* @return Base
|
||||
*/
|
||||
public static function getInstance(array $config): object
|
||||
public static function getInstance(array $config): Base
|
||||
{
|
||||
return new static($config);
|
||||
}
|
||||
|
|
@ -88,9 +86,9 @@ abstract class Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
*
|
||||
* @param object $message
|
||||
* @param array $tokens
|
||||
* @return object
|
||||
* @return \stdClass
|
||||
*/
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens)
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens): \stdClass
|
||||
{
|
||||
return new \stdClass;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,9 +42,9 @@ class FCM extends Base implements \Rhymix\Framework\Drivers\PushInterface
|
|||
*
|
||||
* @param object $message
|
||||
* @param array $tokens
|
||||
* @return object
|
||||
* @return \stdClass
|
||||
*/
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens)
|
||||
public function send(\Rhymix\Framework\Push $message, array $tokens): \stdClass
|
||||
{
|
||||
$output = new \stdClass;
|
||||
$output->success = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue