Skip to content

Commit

Permalink
fix(array-to-string-conversion): Fix array to string conversion error…
Browse files Browse the repository at this point in the history
… in webhook registration
  • Loading branch information
crisgoncalves-mdi committed Aug 6, 2024
1 parent 690195f commit faa5ace
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Webhooks/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,13 @@ private static function isWebhookRegistrationNeeded(

$checkStatusCode = $checkResponse->getStatusCode();
$checkBody = $checkResponse->getDecodedBody();
$checkBodyString = json_encode($checkBody, JSON_PRETTY_PRINT);

if ($checkStatusCode !== 200) {
throw new WebhookRegistrationException(
<<<ERROR
Failed to check if webhook was already registered (status code $checkStatusCode):
$checkBody
$checkBodyString
ERROR
);
}
Expand Down

0 comments on commit faa5ace

Please sign in to comment.