From 5cc62f28de49bf7ca2568e119486591b7781de81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Mon, 2 May 2022 15:07:15 +0200 Subject: [PATCH] fix: ServiceException constructor --- Core/src/Exception/ServiceException.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/Exception/ServiceException.php b/Core/src/Exception/ServiceException.php index 0efc81ec2caa..4d1dfb115db9 100644 --- a/Core/src/Exception/ServiceException.php +++ b/Core/src/Exception/ServiceException.php @@ -39,12 +39,12 @@ class ServiceException extends GoogleException * * @param string $message * @param int $code - * @param Exception $serviceException + * @param Exception|null $serviceException * @param array $metadata [optional] Exception metadata. */ public function __construct( $message, - $code = null, + $code = 0, Exception $serviceException = null, array $metadata = [] ) {