Skip to content

Commit 7ed2390

Browse files
committed
Improve phpdoc
1 parent 6264635 commit 7ed2390

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/WebPush.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function __construct(array $auth = [], array $defaultOptions = [], ?int $
111111
* @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
112112
* @param array $auth Use this auth details instead of what you provided when creating WebPush
113113
*
114-
* @return iterable|bool Return an array of information if $flush is set to true and the queued requests has failed.
114+
* @return \Generator|MessageSentReport[]|true Return an array of information if $flush is set to true and the queued requests has failed.
115115
* Else return true
116116
*
117117
* @throws \ErrorException
@@ -145,10 +145,10 @@ public function sendNotification(Subscription $subscription, ?string $payload =
145145
*
146146
* @param null|int $batchSize Defaults the value defined in defaultOptions during instantiation (which defaults to 1000).
147147
*
148-
* @return iterable
148+
* @return \Generator|MessageSentReport[]
149149
* @throws \ErrorException
150150
*/
151-
public function flush(?int $batchSize = null) : iterable
151+
public function flush(?int $batchSize = null): \Generator
152152
{
153153
if (null === $this->notifications || empty($this->notifications)) {
154154
yield from [];

0 commit comments

Comments
 (0)