Skip to content

Commit

Permalink
Implicitly marking parameter $previous as nullable is deprecated
Browse files Browse the repository at this point in the history
Deprecated: Spiral\RoadRunner\GRPC\Exception\GRPCException::create(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead
  • Loading branch information
okorneliuk authored Jan 3, 2025
1 parent 49f1ae1 commit 4bcc87b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Exception/GRPCException.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final public function __construct(
string $message = '',
?int $code = null,
private array $details = [],
\Throwable $previous = null,
?\Throwable $previous = null,
) {
parent::__construct($message, $code ?? static::CODE, $previous);
}
Expand All @@ -44,7 +44,7 @@ public static function create(
string $message,
#[ExpectedValues(valuesFromClass: StatusCode::class)]
int $code = self::CODE,
\Throwable $previous = null,
?\Throwable $previous = null,
array $details = [],
): self {
return new static($message, $code, $details, $previous);
Expand Down

0 comments on commit 4bcc87b

Please sign in to comment.