mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
Remove void return type for PHP 7.0 compatibility
This commit is contained in:
parent
0690c6c603
commit
16ce23150c
1 changed files with 6 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ class Push
|
||||||
* @param object $driver
|
* @param object $driver
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function addDriver(string $name, Drivers\PushInterface $driver): void
|
public static function addDriver(string $name, Drivers\PushInterface $driver)
|
||||||
{
|
{
|
||||||
self::$_drivers[$name] = $driver;
|
self::$_drivers[$name] = $driver;
|
||||||
}
|
}
|
||||||
|
|
@ -368,8 +368,9 @@ class Push
|
||||||
* Delete the device toekn
|
* Delete the device toekn
|
||||||
*
|
*
|
||||||
* @param array
|
* @param array
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _deleteInvalidTokens(array $invalid_tokens): void
|
protected function _deleteInvalidTokens(array $invalid_tokens)
|
||||||
{
|
{
|
||||||
if(!count($invalid_tokens))
|
if(!count($invalid_tokens))
|
||||||
{
|
{
|
||||||
|
|
@ -384,8 +385,9 @@ class Push
|
||||||
* Update the device toekn
|
* Update the device toekn
|
||||||
*
|
*
|
||||||
* @param array
|
* @param array
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function _updateDeviceTokens(array $update_tokens): void
|
protected function _updateDeviceTokens(array $update_tokens)
|
||||||
{
|
{
|
||||||
$args = new \stdClass;
|
$args = new \stdClass;
|
||||||
foreach($update_tokens as $key => $value)
|
foreach($update_tokens as $key => $value)
|
||||||
|
|
@ -432,7 +434,7 @@ class Push
|
||||||
* @param string $message
|
* @param string $message
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function addError(string $message): void
|
public function addError(string $message)
|
||||||
{
|
{
|
||||||
$this->errors[] = $message;
|
$this->errors[] = $message;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue