Skip to content

Commit

Permalink
Merge pull request #53 from defji/patch-2
Browse files Browse the repository at this point in the history
keep php5.6 support
  • Loading branch information
erlangparasu authored Jan 28, 2021
2 parents fc552b6 + 7a17f38 commit 19ee532
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Fcm.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ public function __construct($serverKey)
$this->serverKey = $serverKey;
}

public function to(array $recipients)
public function to($recipients)
{
$this->recipients = $recipients;

return $this;
}

public function toTopic(string $topic)
public function toTopic($topic)
{
$this->topic = $topic;

return $this;
}

public function data(array $data = [])
public function data($data = [])
{
$this->data = $data;

return $this;
}

public function notification(array $notification = [])
public function notification($notification = [])
{
$this->notification = $notification;

Expand All @@ -59,7 +59,7 @@ public function priority(string $priority)
return $this;
}

public function timeToLive(int $timeToLive)
public function timeToLive($timeToLive)
{
if ($timeToLive < 0) {
$timeToLive = 0; // (0 seconds)
Expand Down

0 comments on commit 19ee532

Please sign in to comment.