From 4bcc87b30ebf6b53264e7cf578eb9fd047a57c1b Mon Sep 17 00:00:00 2001 From: Oleh Korneliuk Date: Fri, 3 Jan 2025 23:39:16 +0300 Subject: [PATCH] Implicitly marking parameter $previous as nullable is deprecated Deprecated: Spiral\RoadRunner\GRPC\Exception\GRPCException::create(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead --- src/Exception/GRPCException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Exception/GRPCException.php b/src/Exception/GRPCException.php index 3f53f18..36bc257 100644 --- a/src/Exception/GRPCException.php +++ b/src/Exception/GRPCException.php @@ -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); } @@ -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);