Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
chore: *
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Dec 13, 2019
1 parent c6e03c6 commit 5b2c810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function setMessage(?string $contents = null, array $options) {
*/
public function setNotification(string $platform, $alert, array $options = [])
{
if (!is_array($alert) && !is_array($alert)) {
if (!is_string($alert) && !is_array($alert)) {
throw new \Exception('Alert 只允许字符串或者数组');
}

Expand Down

1 comment on commit 5b2c810

@medz
Copy link
Owner Author

@medz medz commented on 5b2c810 Dec 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4

Please sign in to comment.