Skip to content

Commit 6d8677a

Browse files
committed
return the correct number of responses if there are both sucess and errors, fix #26
1 parent b5445f7 commit 6d8677a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebPush.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function flush()
140140
// for each endpoint server type
141141
$responses = array();
142142
foreach ($this->notificationsByServerType as $serverType => $notifications) {
143-
$responses += $this->prepareAndSend($notifications, $serverType);
143+
$responses = array_merge($responses, $this->prepareAndSend($notifications, $serverType));
144144
}
145145

146146
// if multi curl, flush

0 commit comments

Comments
 (0)