Skip to content

Commit

Permalink
Add support for Laravel 9.x (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: atymic <[email protected]>
  • Loading branch information
marcroberts and atymic authored Feb 1, 2022
1 parent 957182b commit e3447d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
22 changes: 11 additions & 11 deletions src/FcmMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getName(): ?string
}

/**
* @param string|null $name
* @param string|null $name
* @return FcmMessage
*/
public function setName(?string $name): self
Expand All @@ -94,7 +94,7 @@ public function getData(): ?array
}

/**
* @param array|null $data
* @param array|null $data
* @return FcmMessage
*/
public function setData(?array $data): self
Expand All @@ -113,7 +113,7 @@ public function getNotification(): ?Notification
}

/**
* @param Notification|null $notification
* @param Notification|null $notification
* @return FcmMessage
*/
public function setNotification(?Notification $notification): self
Expand All @@ -132,7 +132,7 @@ public function getAndroid(): ?AndroidConfig
}

/**
* @param AndroidConfig|null $android
* @param AndroidConfig|null $android
* @return FcmMessage
*/
public function setAndroid(?AndroidConfig $android): self
Expand All @@ -151,7 +151,7 @@ public function getWebpush(): ?WebpushConfig
}

/**
* @param WebpushConfig|null $webpush
* @param WebpushConfig|null $webpush
* @return FcmMessage
*/
public function setWebpush(?WebpushConfig $webpush): self
Expand All @@ -170,7 +170,7 @@ public function getApns(): ?ApnsConfig
}

/**
* @param ApnsConfig|null $apns
* @param ApnsConfig|null $apns
* @return FcmMessage
*/
public function setApns(?ApnsConfig $apns): self
Expand All @@ -189,7 +189,7 @@ public function getFcmOptions(): ?FcmOptions
}

/**
* @param FcmOptions|null $fcmOptions
* @param FcmOptions|null $fcmOptions
* @return FcmMessage
*/
public function setFcmOptions(?FcmOptions $fcmOptions): self
Expand All @@ -208,7 +208,7 @@ public function getToken(): ?string
}

/**
* @param string|null $token
* @param string|null $token
* @return FcmMessage
*/
public function setToken(?string $token): self
Expand All @@ -227,7 +227,7 @@ public function getTopic(): ?string
}

/**
* @param string|null $topic
* @param string|null $topic
* @return FcmMessage
*/
public function setTopic(?string $topic): self
Expand All @@ -246,7 +246,7 @@ public function getCondition(): ?string
}

/**
* @param string|null $condition
* @param string|null $condition
* @return FcmMessage
*/
public function setCondition(?string $condition): self
Expand All @@ -272,7 +272,7 @@ public function toArray()
];
}

public function jsonSerialize()
public function jsonSerialize(): mixed
{
return $this->toArray();
}
Expand Down

0 comments on commit e3447d2

Please sign in to comment.