You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/WebPush.php
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ public function __construct(array $auth = [], array $defaultOptions = [], ?int $
100
100
* @param array $options Array with several options tied to this notification. If not set, will use the default options that you can set in the WebPush object
101
101
* @param array $auth Use this auth details instead of what you provided when creating WebPush
102
102
*
103
-
* @return array|bool Return an array of information if $flush is set to true and the queued requests has failed.
103
+
* @return iterable|bool Return an array of information if $flush is set to true and the queued requests has failed.
104
104
* Else return true
105
105
*
106
106
* @throws \ErrorException
@@ -112,7 +112,12 @@ public function sendNotification(Subscription $subscription, ?string $payload =
112
112
thrownew \ErrorException('Size of payload must not be greater than '.Encryption::MAX_PAYLOAD_LENGTH.' octets.');
0 commit comments