File tree 3 files changed +15
-5
lines changed
Filter options
3 files changed +15
-5
lines changed
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ abstract protected function doDelete(array $ids);
78
78
*
79
79
* @return array|bool The identifiers that failed to be cached or a boolean stating if caching succeeded or not
80
80
*/
81
- abstract protected function doSave (array $ values , $ lifetime );
81
+ abstract protected function doSave (array $ values , ? int $ lifetime );
82
82
83
83
/**
84
84
* {@inheritdoc}
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \HttpClient \Chunk \FirstChunk ;
16
16
use Symfony \Component \HttpClient \Chunk \InformationalChunk ;
17
17
use Symfony \Component \HttpClient \Exception \TransportException ;
18
+ use Symfony \Component \HttpClient \Internal \ClientState ;
18
19
use Symfony \Component \HttpClient \Internal \CurlClientState ;
19
20
use Symfony \Contracts \HttpClient \Exception \HttpExceptionInterface ;
20
21
use Symfony \Contracts \HttpClient \ResponseInterface ;
@@ -242,8 +243,10 @@ private static function schedule(self $response, array &$runningResponses): void
242
243
243
244
/**
244
245
* {@inheritdoc}
246
+ *
247
+ * @param CurlClientState $multi
245
248
*/
246
- private static function perform (CurlClientState $ multi , array &$ responses = null ): void
249
+ private static function perform (ClientState $ multi , array &$ responses = null ): void
247
250
{
248
251
if (self ::$ performing ) {
249
252
if ($ responses ) {
@@ -289,8 +292,10 @@ private static function perform(CurlClientState $multi, array &$responses = null
289
292
290
293
/**
291
294
* {@inheritdoc}
295
+ *
296
+ * @param CurlClientState $multi
292
297
*/
293
- private static function select (CurlClientState $ multi , float $ timeout ): int
298
+ private static function select (ClientState $ multi , float $ timeout ): int
294
299
{
295
300
if (\PHP_VERSION_ID < 70123 || (70200 <= \PHP_VERSION_ID && \PHP_VERSION_ID < 70211 )) {
296
301
// workaround https://bugs.php.net/76480
Original file line number Diff line number Diff line change 14
14
use Psr \Log \LoggerInterface ;
15
15
use Symfony \Component \HttpClient \Chunk \FirstChunk ;
16
16
use Symfony \Component \HttpClient \Exception \TransportException ;
17
+ use Symfony \Component \HttpClient \Internal \ClientState ;
17
18
use Symfony \Component \HttpClient \Internal \NativeClientState ;
18
19
use Symfony \Contracts \HttpClient \Exception \HttpExceptionInterface ;
19
20
use Symfony \Contracts \HttpClient \ResponseInterface ;
@@ -214,8 +215,10 @@ private static function schedule(self $response, array &$runningResponses): void
214
215
215
216
/**
216
217
* {@inheritdoc}
218
+ *
219
+ * @param NativeClientState $multi
217
220
*/
218
- private static function perform (NativeClientState $ multi , array &$ responses = null ): void
221
+ private static function perform (ClientState $ multi , array &$ responses = null ): void
219
222
{
220
223
// List of native handles for stream_select()
221
224
if (null !== $ responses ) {
@@ -326,8 +329,10 @@ private static function perform(NativeClientState $multi, array &$responses = nu
326
329
327
330
/**
328
331
* {@inheritdoc}
332
+ *
333
+ * @param NativeClientState $multi
329
334
*/
330
- private static function select (NativeClientState $ multi , float $ timeout ): int
335
+ private static function select (ClientState $ multi , float $ timeout ): int
331
336
{
332
337
$ _ = [];
333
338
You can’t perform that action at this time.
0 commit comments