@@ -315,7 +315,7 @@ private function createTransport(
315315 string $ apiEndpoint ,
316316 $ transport ,
317317 $ transportConfig ,
318- callable $ clientCertSource = null
318+ ? callable $ clientCertSource = null
319319 ) {
320320 if (!is_string ($ transport )) {
321321 throw new ValidationException (
@@ -511,7 +511,7 @@ private function startAsyncCall(
511511 */
512512 private function startApiCall (
513513 string $ methodName ,
514- Message $ request = null ,
514+ ? Message $ request = null ,
515515 array $ optionalArgs = []
516516 ) {
517517 $ methodDescriptors =$ this ->validateCallConfig ($ methodName );
@@ -573,9 +573,9 @@ private function startCall(
573573 string $ methodName ,
574574 string $ decodeType ,
575575 array $ optionalArgs = [],
576- Message $ request = null ,
576+ ? Message $ request = null ,
577577 int $ callType = Call::UNARY_CALL ,
578- string $ interfaceName = null
578+ ? string $ interfaceName = null
579579 ) {
580580 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
581581 $ callStack = $ this ->createCallStack (
@@ -713,8 +713,8 @@ private function startOperationsCall(
713713 array $ optionalArgs ,
714714 Message $ request ,
715715 $ client ,
716- string $ interfaceName = null ,
717- string $ operationClass = null
716+ ? string $ interfaceName = null ,
717+ ? string $ operationClass = null
718718 ) {
719719 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
720720 $ callStack = $ this ->createCallStack (
@@ -769,7 +769,7 @@ private function getPagedListResponse(
769769 array $ optionalArgs ,
770770 string $ decodeType ,
771771 Message $ request ,
772- string $ interfaceName = null
772+ ? string $ interfaceName = null
773773 ) {
774774 return $ this ->getPagedListResponseAsync (
775775 $ methodName ,
@@ -794,7 +794,7 @@ private function getPagedListResponseAsync(
794794 array $ optionalArgs ,
795795 string $ decodeType ,
796796 Message $ request ,
797- string $ interfaceName = null
797+ ? string $ interfaceName = null
798798 ) {
799799 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
800800 $ callStack = $ this ->createCallStack (
@@ -825,7 +825,7 @@ private function getPagedListResponseAsync(
825825 *
826826 * @return string
827827 */
828- private function buildMethod (string $ interfaceName = null , string $ methodName = null )
828+ private function buildMethod (? string $ interfaceName = null , ? string $ methodName = null )
829829 {
830830 return sprintf (
831831 '%s/%s ' ,
@@ -840,7 +840,7 @@ private function buildMethod(string $interfaceName = null, string $methodName =
840840 *
841841 * @return array
842842 */
843- private function buildRequestParamsHeader (array $ headerParams , Message $ request = null )
843+ private function buildRequestParamsHeader (array $ headerParams , ? Message $ request = null )
844844 {
845845 $ headers = [];
846846
0 commit comments