Skip to content

Commit d776f6e

Browse files
committed
if error data["message"] was not available and is now null
1 parent 23f9f4e commit d776f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/Ahoi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function getScopeSeparator()
9191
protected function checkResponse(ResponseInterface $response, $data)
9292
{
9393
$acceptableStatuses = [200, 201];
94-
94+
$data['message']=isset($data['message'])?$data['message']:null;
9595
if (!in_array($response->getStatusCode(), $acceptableStatuses)) {
9696
throw new IdentityProviderException(
9797
$data['message'] ?: $response->getReasonPhrase(),

0 commit comments

Comments
 (0)