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 = [] ) {