Skip to content

Commit

Permalink
Merge pull request #146 from buttjer/master
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightwatson authored Aug 8, 2024
2 parents 389d8a5 + dcc5539 commit 63ef817
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ApnMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use DateTime;
use Pushok\Client;
use Pushok\Payload\Sound;

class ApnMessage
{
Expand Down Expand Up @@ -37,7 +38,7 @@ class ApnMessage
/**
* The sound of the notification.
*/
public ?string $sound = null;
public null|string|Sound $sound = null;

/**
* The interruption level of the notification.
Expand Down Expand Up @@ -199,7 +200,7 @@ public function badge(?int $badge): self
/**
* Set the sound of the notification.
*/
public function sound(?string $sound = 'default'): self
public function sound(null|string|Sound $sound = 'default'): self
{
$this->sound = $sound;

Expand Down

0 comments on commit 63ef817

Please sign in to comment.