Skip to content

Commit

Permalink
Merge pull request #11 from Oliver-Holz/fixes-default-parameter
Browse files Browse the repository at this point in the history
fixes php 8 issue
  • Loading branch information
colinhall17 authored Apr 22, 2021
2 parents 9a0ac4d + 0a5a214 commit 1390fc8
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 1390fc8

Please sign in to comment.