Skip to content

Commit

Permalink
fixes php 8 issue:
Browse files Browse the repository at this point in the history
PHP message: PHP Deprecated:  Required parameter $message follows optional parameter $code in vendor/macsidigital/laravel-api-client/src/Exceptions/HttpException.php on line 9
  • Loading branch information
Oliver-Holz committed Apr 20, 2021
1 parent 9a0ac4d commit 0a5a214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Exceptions/HttpException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
namespace MacsiDigital\API\Exceptions;

use Exception;
use Throwable;

class HttpException extends Exception
{
public function __construct($code = 0, $message, \Throwable $previous = null)
public function __construct($code = 0, $message = '', Throwable $previous = null)
{
parent::__construct('HTTP Request returned Status Code '.$code.'. '.$message);
}
Expand Down

0 comments on commit 0a5a214

Please sign in to comment.