@@ -89,9 +89,9 @@ class ApplicationDefaultCredentials
8989 */
9090 public static function getSubscriber (// @phpstan-ignore-line
9191 $ scope = null ,
92- callable $ httpHandler = null ,
93- array $ cacheConfig = null ,
94- CacheItemPoolInterface $ cache = null
92+ ? callable $ httpHandler = null ,
93+ ? array $ cacheConfig = null ,
94+ ? CacheItemPoolInterface $ cache = null
9595 ) {
9696 $ creds = self ::getCredentials ($ scope , $ httpHandler , $ cacheConfig , $ cache );
9797
@@ -119,9 +119,9 @@ public static function getSubscriber(// @phpstan-ignore-line
119119 */
120120 public static function getMiddleware (
121121 $ scope = null ,
122- callable $ httpHandler = null ,
123- array $ cacheConfig = null ,
124- CacheItemPoolInterface $ cache = null ,
122+ ? callable $ httpHandler = null ,
123+ ? array $ cacheConfig = null ,
124+ ? CacheItemPoolInterface $ cache = null ,
125125 $ quotaProject = null
126126 ) {
127127 $ creds = self ::getCredentials ($ scope , $ httpHandler , $ cacheConfig , $ cache , $ quotaProject );
@@ -152,12 +152,12 @@ public static function getMiddleware(
152152 */
153153 public static function getCredentials (
154154 $ scope = null ,
155- callable $ httpHandler = null ,
156- array $ cacheConfig = null ,
157- CacheItemPoolInterface $ cache = null ,
155+ ? callable $ httpHandler = null ,
156+ ? array $ cacheConfig = null ,
157+ ? CacheItemPoolInterface $ cache = null ,
158158 $ quotaProject = null ,
159159 $ defaultScope = null ,
160- string $ universeDomain = null
160+ ? string $ universeDomain = null
161161 ) {
162162 $ creds = null ;
163163 $ jsonKey = CredentialsLoader::fromEnv ()
@@ -224,9 +224,9 @@ public static function getCredentials(
224224 */
225225 public static function getIdTokenMiddleware (
226226 $ targetAudience ,
227- callable $ httpHandler = null ,
228- array $ cacheConfig = null ,
229- CacheItemPoolInterface $ cache = null
227+ ? callable $ httpHandler = null ,
228+ ? array $ cacheConfig = null ,
229+ ? CacheItemPoolInterface $ cache = null
230230 ) {
231231 $ creds = self ::getIdTokenCredentials ($ targetAudience , $ httpHandler , $ cacheConfig , $ cache );
232232
@@ -251,9 +251,9 @@ public static function getIdTokenMiddleware(
251251 */
252252 public static function getProxyIdTokenMiddleware (
253253 $ targetAudience ,
254- callable $ httpHandler = null ,
255- array $ cacheConfig = null ,
256- CacheItemPoolInterface $ cache = null
254+ ? callable $ httpHandler = null ,
255+ ? array $ cacheConfig = null ,
256+ ? CacheItemPoolInterface $ cache = null
257257 ) {
258258 $ creds = self ::getIdTokenCredentials ($ targetAudience , $ httpHandler , $ cacheConfig , $ cache );
259259
@@ -276,9 +276,9 @@ public static function getProxyIdTokenMiddleware(
276276 */
277277 public static function getIdTokenCredentials (
278278 $ targetAudience ,
279- callable $ httpHandler = null ,
280- array $ cacheConfig = null ,
281- CacheItemPoolInterface $ cache = null
279+ ? callable $ httpHandler = null ,
280+ ? array $ cacheConfig = null ,
281+ ? CacheItemPoolInterface $ cache = null
282282 ) {
283283 $ creds = null ;
284284 $ jsonKey = CredentialsLoader::fromEnv ()
@@ -340,9 +340,9 @@ private static function notFound()
340340 * @return bool
341341 */
342342 private static function onGce (
343- callable $ httpHandler = null ,
344- array $ cacheConfig = null ,
345- CacheItemPoolInterface $ cache = null
343+ ? callable $ httpHandler = null ,
344+ ? array $ cacheConfig = null ,
345+ ? CacheItemPoolInterface $ cache = null
346346 ) {
347347 $ gceCacheConfig = [];
348348 foreach (['lifetime ' , 'prefix ' ] as $ key ) {
0 commit comments