Skip to content

Commit 74bc0ac

Browse files
The-HasanovMinishlink
authored andcommitted
add reasonPhrase (#157)
1 parent 75d198b commit 74bc0ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebPush.php

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public function flush(?int $batchSize = null)
188188
if ($response !== null) {
189189
$statusCode = $response->getStatusCode();
190190
$error['statusCode'] = $statusCode;
191+
$error['reasonPhrase'] = $response->getReasonPhrase();
191192
$error['expired'] = in_array($statusCode, [404, 410]);
192193
$error['content'] = $response->getBody();
193194
$error['headers'] = $response->getHeaders();

0 commit comments

Comments
 (0)