Skip to content

Commit 164adc4

Browse files
authored
Merge pull request #19 from demmmmios/main
fix: setBadge var type
2 parents 70ed932 + bf4819a commit 164adc4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Model/Message/Notification/ApnsNotification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public function setSound($sound): self
8888
/**
8989
* @return \Kerox\Fcm\Model\Message\Notification\ApnsNotification
9090
*/
91-
public function setBadge(bool $badge): self
91+
public function setBadge(int $badge): self
9292
{
93-
$this->badge = (int) $badge;
93+
$this->badge = $badge;
9494

9595
return $this;
9696
}

tests/Model/MessageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testMessage(): void
165165
])
166166
->setActionLocKey('action-loc-key')
167167
)
168-
->setBadge(true)
168+
->setBadge(2)
169169
->setSound(
170170
(new Sound())
171171
->isCritical()

0 commit comments

Comments
 (0)