Skip to content

Commit 19ee532

Browse files
authored
Merge pull request #53 from defji/patch-2
keep php5.6 support
2 parents fc552b6 + 7a17f38 commit 19ee532

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Fcm.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ public function __construct($serverKey)
2424
$this->serverKey = $serverKey;
2525
}
2626

27-
public function to(array $recipients)
27+
public function to($recipients)
2828
{
2929
$this->recipients = $recipients;
3030

3131
return $this;
3232
}
3333

34-
public function toTopic(string $topic)
34+
public function toTopic($topic)
3535
{
3636
$this->topic = $topic;
3737

3838
return $this;
3939
}
4040

41-
public function data(array $data = [])
41+
public function data($data = [])
4242
{
4343
$this->data = $data;
4444

4545
return $this;
4646
}
4747

48-
public function notification(array $notification = [])
48+
public function notification($notification = [])
4949
{
5050
$this->notification = $notification;
5151

@@ -59,7 +59,7 @@ public function priority(string $priority)
5959
return $this;
6060
}
6161

62-
public function timeToLive(int $timeToLive)
62+
public function timeToLive($timeToLive)
6363
{
6464
if ($timeToLive < 0) {
6565
$timeToLive = 0; // (0 seconds)

0 commit comments

Comments
 (0)