@@ -226,7 +226,7 @@ private static function select(ClientState $multi, float $timeout): int
226
226
return null === self ::$ delay ? 1 : 0 ;
227
227
}
228
228
229
- private static function generateResponse (Request $ request , AmpClientState $ multi , string $ id , array &$ info , array &$ headers , CancellationTokenSource $ canceller , array &$ options , \Closure $ onProgress , &$ handle , ?LoggerInterface $ logger , Promise &$ pause )
229
+ private static function generateResponse (Request $ request , AmpClientState $ multi , string $ id , array &$ info , array &$ headers , CancellationTokenSource $ canceller , array &$ options , \Closure $ onProgress , &$ handle , ?LoggerInterface $ logger , Promise &$ pause ): \ Generator
230
230
{
231
231
$ request ->setInformationalResponseHandler (static function (Response $ response ) use ($ multi , $ id , &$ info , &$ headers ) {
232
232
self ::addResponseHeaders ($ response , $ info , $ headers );
@@ -285,7 +285,7 @@ private static function generateResponse(Request $request, AmpClientState $multi
285
285
self ::stopLoop ();
286
286
}
287
287
288
- private static function followRedirects (Request $ originRequest , AmpClientState $ multi , array &$ info , array &$ headers , CancellationTokenSource $ canceller , array $ options , \Closure $ onProgress , &$ handle , ?LoggerInterface $ logger , Promise &$ pause )
288
+ private static function followRedirects (Request $ originRequest , AmpClientState $ multi , array &$ info , array &$ headers , CancellationTokenSource $ canceller , array $ options , \Closure $ onProgress , &$ handle , ?LoggerInterface $ logger , Promise &$ pause ): \ Generator
289
289
{
290
290
yield $ pause ;
291
291
@@ -399,7 +399,7 @@ private static function addResponseHeaders(Response $response, array &$info, arr
399
399
/**
400
400
* Accepts pushed responses only if their headers related to authentication match the request.
401
401
*/
402
- private static function getPushedResponse (Request $ request , AmpClientState $ multi , array &$ info , array &$ headers , array $ options , ?LoggerInterface $ logger )
402
+ private static function getPushedResponse (Request $ request , AmpClientState $ multi , array &$ info , array &$ headers , array $ options , ?LoggerInterface $ logger ): \ Generator
403
403
{
404
404
if ('' !== $ options ['body ' ]) {
405
405
return null ;
0 commit comments