diff --git a/composer.json b/composer.json index 1e21970..5dc3c83 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "require": { "php": ">=7.1.3", "guzzlehttp/guzzle": "^6.2 || ^7.0", - "illuminate/notifications": "~5.6 || ~6.0 || ~7.0 || ~8.0", - "illuminate/support": "~5.6 || ~6.0 || ~7.0 || ~8.0", + "illuminate/notifications": "~5.6 || ~6.0 || ~7.0 || ~8.0 || ~9.0", + "illuminate/support": "~5.6 || ~6.0 || ~7.0 || ~8.0 || ~9.0", "kreait/laravel-firebase": "^1.3 || ^2.1 || ^3.0", "spatie/enum": "^2.3 || ^3.0" }, diff --git a/src/FcmMessage.php b/src/FcmMessage.php index 12d328b..ee2c7c8 100644 --- a/src/FcmMessage.php +++ b/src/FcmMessage.php @@ -75,7 +75,7 @@ public function getName(): ?string } /** - * @param string|null $name + * @param string|null $name * @return FcmMessage */ public function setName(?string $name): self @@ -94,7 +94,7 @@ public function getData(): ?array } /** - * @param array|null $data + * @param array|null $data * @return FcmMessage */ public function setData(?array $data): self @@ -113,7 +113,7 @@ public function getNotification(): ?Notification } /** - * @param Notification|null $notification + * @param Notification|null $notification * @return FcmMessage */ public function setNotification(?Notification $notification): self @@ -132,7 +132,7 @@ public function getAndroid(): ?AndroidConfig } /** - * @param AndroidConfig|null $android + * @param AndroidConfig|null $android * @return FcmMessage */ public function setAndroid(?AndroidConfig $android): self @@ -151,7 +151,7 @@ public function getWebpush(): ?WebpushConfig } /** - * @param WebpushConfig|null $webpush + * @param WebpushConfig|null $webpush * @return FcmMessage */ public function setWebpush(?WebpushConfig $webpush): self @@ -170,7 +170,7 @@ public function getApns(): ?ApnsConfig } /** - * @param ApnsConfig|null $apns + * @param ApnsConfig|null $apns * @return FcmMessage */ public function setApns(?ApnsConfig $apns): self @@ -189,7 +189,7 @@ public function getFcmOptions(): ?FcmOptions } /** - * @param FcmOptions|null $fcmOptions + * @param FcmOptions|null $fcmOptions * @return FcmMessage */ public function setFcmOptions(?FcmOptions $fcmOptions): self @@ -208,7 +208,7 @@ public function getToken(): ?string } /** - * @param string|null $token + * @param string|null $token * @return FcmMessage */ public function setToken(?string $token): self @@ -227,7 +227,7 @@ public function getTopic(): ?string } /** - * @param string|null $topic + * @param string|null $topic * @return FcmMessage */ public function setTopic(?string $topic): self @@ -246,7 +246,7 @@ public function getCondition(): ?string } /** - * @param string|null $condition + * @param string|null $condition * @return FcmMessage */ public function setCondition(?string $condition): self @@ -272,7 +272,7 @@ public function toArray() ]; } - public function jsonSerialize() + public function jsonSerialize(): mixed { return $this->toArray(); }