Merge pull request #5915 from turbo124/v5-develop

Fix for regression in Handler.php
This commit is contained in:
David Bomba 2021-06-04 08:30:36 +10:00 committed by GitHub
commit 474e942cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,12 +40,12 @@ trait SubscriptionHooker
RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false RequestOptions::JSON => ['body' => $body], RequestOptions::ALLOW_REDIRECTS => false
]); ]);
return json_decode($response->getBody(),true); return array_merge($body, json_decode($response->getBody(),true));
} }
catch(\Exception $e) catch(\Exception $e)
{ {
return ['message' => $e->getMessage(), 'status_code' => 500]; return array_merge($body, ['message' => $e->getMessage(), 'status_code' => 500]);
} }