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);