Skip to content

Commit

Permalink
PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Jul 17, 2024
1 parent 2df2648 commit b14d0b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Http/HttpClientContextStrata.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait HttpClientContextStrata
{
use ContextStrata;

public function __construct($message = null, $code = 0, Throwable $previous = null)
public function __construct(?string $message = null, ?int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message ?? $this->suggestErrorMessage(), $code ?? 0, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/HttpServerContextStrata.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait HttpServerContextStrata
{
use ContextStrata;

public function __construct($message = null, $code = 0, Throwable $previous = null)
public function __construct(?string $message = null, ?int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message ?? $this->suggestErrorMessage(), $code ?? 0, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/LogicException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class LogicException extends \LogicException implements
{
use ContextStrata;

public function __construct($message = null, $code = 0, Throwable $previous = null)
public function __construct(?string $message = null, ?int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message ?? '', $code ?? 0, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion src/RuntimeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RuntimeException extends \RuntimeException implements
{
use ContextStrata;

public function __construct($message = null, $code = 0, Throwable $previous = null)
public function __construct(?string $message = null, ?int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message ?? '', $code ?? 0, $previous);
}
Expand Down

0 comments on commit b14d0b2

Please sign in to comment.