We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70ed932 + bf4819a commit 164adc4Copy full SHA for 164adc4
src/Model/Message/Notification/ApnsNotification.php
@@ -88,9 +88,9 @@ public function setSound($sound): self
88
/**
89
* @return \Kerox\Fcm\Model\Message\Notification\ApnsNotification
90
*/
91
- public function setBadge(bool $badge): self
+ public function setBadge(int $badge): self
92
{
93
- $this->badge = (int) $badge;
+ $this->badge = $badge;
94
95
return $this;
96
}
tests/Model/MessageTest.php
@@ -165,7 +165,7 @@ public function testMessage(): void
165
])
166
->setActionLocKey('action-loc-key')
167
)
168
- ->setBadge(true)
+ ->setBadge(2)
169
->setSound(
170
(new Sound())
171
->isCritical()
0 commit comments