We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cfe337 + 10455d8 commit b12e65cCopy full SHA for b12e65c
src/Subscriber/ListRepository.php
@@ -514,7 +514,7 @@ public function getWebhooks($listId)
514
private function throwMailchimpError(array $errorResponse)
515
{
516
$errorArray = json_decode($errorResponse['body'], true);
517
- if (array_key_exists('errors', $errorArray)) {
+ if (is_array($errorArray) && array_key_exists('errors', $errorArray)) {
518
throw new MailchimpException(
519
$errorArray['status'],
520
$errorArray['detail'],
0 commit comments