Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb4e41fc

Browse files
committed
Made method signatures compatible with their corresponding traits.
1 parent6d7c696 commitb4e41fc

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
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-
abstractprotectedfunctiondoSave(array$values,$lifetime);
81+
abstractprotectedfunctiondoSave(array$values,?int$lifetime);
8282

8383
/**
8484
* {@inheritdoc}

‎src/Symfony/Component/Cache/Traits/MemcachedTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public static function createConnection($servers, array $options = [])
223223
/**
224224
* {@inheritdoc}
225225
*/
226-
protectedfunctiondoSave(array$values,$lifetime)
226+
protectedfunctiondoSave(array$values,?int$lifetime)
227227
{
228228
if (!$values =$this->marshaller->marshall($values,$failed)) {
229229
return$failed;

‎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
useSymfony\Component\HttpClient\Chunk\FirstChunk;
1616
useSymfony\Component\HttpClient\Chunk\InformationalChunk;
1717
useSymfony\Component\HttpClient\Exception\TransportException;
18+
useSymfony\Component\HttpClient\Internal\ClientState;
1819
useSymfony\Component\HttpClient\Internal\CurlClientState;
1920
useSymfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
2021
useSymfony\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-
privatestaticfunctionperform(CurlClientState$multi,array &$responses =null):void
249+
privatestaticfunctionperform(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-
privatestaticfunctionselect(CurlClientState$multi,float$timeout):int
298+
privatestaticfunctionselect(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
usePsr\Log\LoggerInterface;
1515
useSymfony\Component\HttpClient\Chunk\FirstChunk;
1616
useSymfony\Component\HttpClient\Exception\TransportException;
17+
useSymfony\Component\HttpClient\Internal\ClientState;
1718
useSymfony\Component\HttpClient\Internal\NativeClientState;
1819
useSymfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
1920
useSymfony\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-
privatestaticfunctionperform(NativeClientState$multi,array &$responses =null):void
221+
privatestaticfunctionperform(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-
privatestaticfunctionselect(NativeClientState$multi,float$timeout):int
335+
privatestaticfunctionselect(ClientState$multi,float$timeout):int
331336
{
332337
$_ = [];
333338

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp