@@ -337,7 +337,7 @@ private function createTransport(
337337 string $ apiEndpoint ,
338338 $ transport ,
339339 $ transportConfig ,
340- callable $ clientCertSource = null ,
340+ ? callable $ clientCertSource = null ,
341341 bool $ hasEmulator = false
342342 ) {
343343 if (!is_string ($ transport )) {
@@ -536,7 +536,7 @@ private function startAsyncCall(
536536 */
537537 private function startApiCall (
538538 string $ methodName ,
539- Message $ request = null ,
539+ ? Message $ request = null ,
540540 array $ optionalArgs = []
541541 ) {
542542 $ methodDescriptors = $ this ->validateCallConfig ($ methodName );
@@ -598,9 +598,9 @@ private function startCall(
598598 string $ methodName ,
599599 string $ decodeType ,
600600 array $ optionalArgs = [],
601- Message $ request = null ,
601+ ? Message $ request = null ,
602602 int $ callType = Call::UNARY_CALL ,
603- string $ interfaceName = null
603+ ? string $ interfaceName = null
604604 ) {
605605 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
606606 $ callStack = $ this ->createCallStack (
@@ -752,8 +752,8 @@ private function startOperationsCall(
752752 array $ optionalArgs ,
753753 Message $ request ,
754754 $ client ,
755- string $ interfaceName = null ,
756- string $ operationClass = null
755+ ? string $ interfaceName = null ,
756+ ? string $ operationClass = null
757757 ) {
758758 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
759759 $ callStack = $ this ->createCallStack (
@@ -808,7 +808,7 @@ private function getPagedListResponse(
808808 array $ optionalArgs ,
809809 string $ decodeType ,
810810 Message $ request ,
811- string $ interfaceName = null
811+ ? string $ interfaceName = null
812812 ) {
813813 return $ this ->getPagedListResponseAsync (
814814 $ methodName ,
@@ -833,7 +833,7 @@ private function getPagedListResponseAsync(
833833 array $ optionalArgs ,
834834 string $ decodeType ,
835835 Message $ request ,
836- string $ interfaceName = null
836+ ? string $ interfaceName = null
837837 ) {
838838 $ optionalArgs = $ this ->configureCallOptions ($ optionalArgs );
839839 $ callStack = $ this ->createCallStack (
@@ -864,7 +864,7 @@ private function getPagedListResponseAsync(
864864 *
865865 * @return string
866866 */
867- private function buildMethod (string $ interfaceName = null , string $ methodName = null )
867+ private function buildMethod (? string $ interfaceName = null , ? string $ methodName = null )
868868 {
869869 return sprintf (
870870 '%s/%s ' ,
@@ -879,7 +879,7 @@ private function buildMethod(string $interfaceName = null, string $methodName =
879879 *
880880 * @return array
881881 */
882- private function buildRequestParamsHeader (array $ headerParams , Message $ request = null )
882+ private function buildRequestParamsHeader (array $ headerParams , ? Message $ request = null )
883883 {
884884 $ headers = [];
885885
0 commit comments