Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f194a5

Browse files
committed
Made method signatures compatible with their corresponding traits.
1 parent 6d7c696 commit 9f194a5

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

src/Symfony/Component/Cache/Traits/AbstractTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ abstract protected function doDelete(array $ids);
7878
*
7979
* @return array|bool The identifiers that failed to be cached or a boolean stating if caching succeeded or not
8080
*/
81-
abstract protected function doSave(array $values, $lifetime);
81+
abstract protected function doSave(array $values, ?int $lifetime);
8282

8383
/**
8484
* {@inheritdoc}

src/Symfony/Component/HttpClient/Response/CurlResponse.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Component\HttpClient\Chunk\FirstChunk;
1616
use Symfony\Component\HttpClient\Chunk\InformationalChunk;
1717
use Symfony\Component\HttpClient\Exception\TransportException;
18+
use Symfony\Component\HttpClient\Internal\ClientState;
1819
use Symfony\Component\HttpClient\Internal\CurlClientState;
1920
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
2021
use Symfony\Contracts\HttpClient\ResponseInterface;
@@ -242,8 +243,10 @@ private static function schedule(self $response, array &$runningResponses): void
242243

243244
/**
244245
* {@inheritdoc}
246+
*
247+
* @param CurlClientState $multi
245248
*/
246-
private static function perform(CurlClientState $multi, array &$responses = null): void
249+
private static function perform(ClientState $multi, array &$responses = null): void
247250
{
248251
if (self::$performing) {
249252
if ($responses) {
@@ -289,8 +292,10 @@ private static function perform(CurlClientState $multi, array &$responses = null
289292

290293
/**
291294
* {@inheritdoc}
295+
*
296+
* @param CurlClientState $multi
292297
*/
293-
private static function select(CurlClientState $multi, float $timeout): int
298+
private static function select(ClientState $multi, float $timeout): int
294299
{
295300
if (\PHP_VERSION_ID < 70123 || (70200 <= \PHP_VERSION_ID && \PHP_VERSION_ID < 70211)) {
296301
// workaround https://bugs.php.net/76480

src/Symfony/Component/HttpClient/Response/NativeResponse.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Psr\Log\LoggerInterface;
1515
use Symfony\Component\HttpClient\Chunk\FirstChunk;
1616
use Symfony\Component\HttpClient\Exception\TransportException;
17+
use Symfony\Component\HttpClient\Internal\ClientState;
1718
use Symfony\Component\HttpClient\Internal\NativeClientState;
1819
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
1920
use Symfony\Contracts\HttpClient\ResponseInterface;
@@ -214,8 +215,10 @@ private static function schedule(self $response, array &$runningResponses): void
214215

215216
/**
216217
* {@inheritdoc}
218+
*
219+
* @param NativeClientState $multi
217220
*/
218-
private static function perform(NativeClientState $multi, array &$responses = null): void
221+
private static function perform(ClientState $multi, array &$responses = null): void
219222
{
220223
// List of native handles for stream_select()
221224
if (null !== $responses) {
@@ -326,8 +329,10 @@ private static function perform(NativeClientState $multi, array &$responses = nu
326329

327330
/**
328331
* {@inheritdoc}
332+
*
333+
* @param NativeClientState $multi
329334
*/
330-
private static function select(NativeClientState $multi, float $timeout): int
335+
private static function select(ClientState $multi, float $timeout): int
331336
{
332337
$_ = [];
333338

0 commit comments

Comments
 (0)