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

Commit c6e03c6

Browse files
committed
fix: ( fix #4 ) 修复判断条件错误
1 parent d80da59 commit c6e03c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function setMessage(?string $contents = null, array $options) {
8080
*/
8181
public function setNotification(string $platform, $alert, array $options = [])
8282
{
83-
if (!is_array($alert) || !is_array($alert)) {
83+
if (!is_array($alert) && !is_array($alert)) {
8484
throw new \Exception('Alert 只允许字符串或者数组');
8585
}
8686

0 commit comments

Comments
 (0)