Skip to content

Commit 1390fc8

Browse files
authored
Merge pull request #11 from Oliver-Holz/fixes-default-parameter
fixes php 8 issue
2 parents 9a0ac4d + 0a5a214 commit 1390fc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exceptions/HttpException.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
namespace MacsiDigital\API\Exceptions;
44

55
use Exception;
6+
use Throwable;
67

78
class HttpException extends Exception
89
{
9-
public function __construct($code = 0, $message, \Throwable $previous = null)
10+
public function __construct($code = 0, $message = '', Throwable $previous = null)
1011
{
1112
parent::__construct('HTTP Request returned Status Code '.$code.'. '.$message);
1213
}

0 commit comments

Comments
 (0)