Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-mykhailenko committed Jan 8, 2024
1 parent d125ce4 commit daf0980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"php-http/discovery": "^1.19",
"php-http/multipart-stream-builder": "^1.1.2",
"psr/http-client": "^1.0",
"webmozart/assert": "^1.9.1",
"ext-json": "*"
"webmozart/assert": "^1.9.1"
},
"require-dev": {
"nyholm/nsa": "^1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/HttpClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public static function requestFailed(ResponseInterface $response): HttpClientExc
*/
public static function notFound(ResponseInterface $response): HttpClientException
{
$serverMessage = null;
$serverMessage = [];
$defaultMessage = 'The endpoint you have tried to access does not exist. Check if the domain matches the domain you have configure on Mailgun.';
try {
$serverMessage = json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
Expand Down

0 comments on commit daf0980

Please sign in to comment.