From f63edc5bb25452ca4d4b88e115a900fca66587a8 Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Thu, 13 Mar 2025 23:58:12 +0100 Subject: [PATCH] chore: PHP CS Fixer fixes --- .../Doctrine/Middleware/Debug/Driver.php | 2 +- .../DoctrineDataCollectorTest.php | 2 +- .../Bridge/PhpUnit/bin/simple-phpunit.php | 2 +- src/Symfony/Bridge/PhpUnit/bootstrap.php | 2 +- .../Component/Cache/Traits/RedisTrait.php | 2 +- .../Cache/Traits/RelayClusterProxy.php | 314 +++++++++--------- .../Clock/Test/ClockSensitiveTrait.php | 1 + .../Component/Clock/Tests/ClockTest.php | 1 + .../Console/Formatter/OutputFormatter.php | 1 + .../Console/Helper/QuestionHelper.php | 1 + .../Console/Tests/Helper/TreeHelperTest.php | 2 +- .../Compiler/CheckCircularReferencesPass.php | 2 +- .../Tests/Command/ErrorDumpCommandTest.php | 1 - .../HttpClient/Response/AmpResponseV5.php | 1 + .../AccessToken/OAuth2/Oauth2TokenHandler.php | 1 + .../Http/AccessToken/Oidc/OidcTrait.php | 1 + .../Passport/Badge/UserBadgeTest.php | 1 + .../IsGrantedAttributeListenerTest.php | 2 +- .../Component/String/Tests/FunctionsTest.php | 1 + .../Tests/Caster/ReflectionCasterTest.php | 2 +- 20 files changed, 175 insertions(+), 167 deletions(-) diff --git a/src/Symfony/Bridge/Doctrine/Middleware/Debug/Driver.php b/src/Symfony/Bridge/Doctrine/Middleware/Debug/Driver.php index ea1ecfbd60b05..b6de4be534f7f 100644 --- a/src/Symfony/Bridge/Doctrine/Middleware/Debug/Driver.php +++ b/src/Symfony/Bridge/Doctrine/Middleware/Debug/Driver.php @@ -36,7 +36,7 @@ public function connect(array $params): ConnectionInterface { $connection = parent::connect($params); - if ('void' !== (string) (new \ReflectionMethod(DriverInterface\Connection::class, 'commit'))->getReturnType()) { + if ('void' !== (string) (new \ReflectionMethod(ConnectionInterface::class, 'commit'))->getReturnType()) { return new DBAL3\Connection( $connection, $this->debugDataHolder, diff --git a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php index d41dd096a44c8..b64a1cc4475c6 100644 --- a/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php +++ b/src/Symfony/Bridge/Doctrine/Tests/DataCollector/DoctrineDataCollectorTest.php @@ -246,7 +246,7 @@ private function createCollector(array $queries): DoctrineDataCollector ->getMock(); $connection->expects($this->any()) ->method('getDatabasePlatform') - ->willReturn(new MySqlPlatform()); + ->willReturn(new MySQLPlatform()); $registry = $this->createMock(ManagerRegistry::class); $registry diff --git a/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php b/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php index 843516c62f29e..5e5011192be90 100644 --- a/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php +++ b/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php @@ -462,7 +462,7 @@ class_exists(\SymfonyExcludeListSimplePhpunit::class, false) && PHPUnit\Util\Bla } } } elseif (!isset($argv[1]) || 'install' !== $argv[1] || file_exists('install')) { - if (!class_exists(\SymfonyExcludeListSimplePhpunit::class, false)) { + if (!class_exists(SymfonyExcludeListSimplePhpunit::class, false)) { class SymfonyExcludeListSimplePhpunit { } diff --git a/src/Symfony/Bridge/PhpUnit/bootstrap.php b/src/Symfony/Bridge/PhpUnit/bootstrap.php index f11b7ab7f4945..5fddda14eb847 100644 --- a/src/Symfony/Bridge/PhpUnit/bootstrap.php +++ b/src/Symfony/Bridge/PhpUnit/bootstrap.php @@ -21,7 +21,7 @@ } // Detect if we're loaded by an actual run of phpunit -if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists(\PHPUnit\TextUI\Command::class, false)) { +if (!defined('PHPUNIT_COMPOSER_INSTALL') && !class_exists(PHPUnit\TextUI\Command::class, false)) { return; } diff --git a/src/Symfony/Component/Cache/Traits/RedisTrait.php b/src/Symfony/Component/Cache/Traits/RedisTrait.php index 55e7cea614f75..19b4b911fb451 100644 --- a/src/Symfony/Component/Cache/Traits/RedisTrait.php +++ b/src/Symfony/Component/Cache/Traits/RedisTrait.php @@ -692,7 +692,7 @@ private function pipeline(\Closure $generator, ?object $redis = null): \Generato $ids = []; $redis ??= $this->redis; - if ($redis instanceof \RedisCluster || $redis instanceof \Relay\Cluster || ($redis instanceof \Predis\ClientInterface && ($redis->getConnection() instanceof RedisCluster || $redis->getConnection() instanceof Predis2RedisCluster))) { + if ($redis instanceof \RedisCluster || $redis instanceof RelayCluster || ($redis instanceof \Predis\ClientInterface && ($redis->getConnection() instanceof RedisCluster || $redis->getConnection() instanceof Predis2RedisCluster))) { // phpredis & predis don't support pipelining with RedisCluster // \Relay\Cluster does not support multi with pipeline mode // see https://github.com/phpredis/phpredis/blob/develop/cluster.markdown#pipelining diff --git a/src/Symfony/Component/Cache/Traits/RelayClusterProxy.php b/src/Symfony/Component/Cache/Traits/RelayClusterProxy.php index 6d124342e999a..fd5f08b5a4525 100644 --- a/src/Symfony/Component/Cache/Traits/RelayClusterProxy.php +++ b/src/Symfony/Component/Cache/Traits/RelayClusterProxy.php @@ -24,7 +24,7 @@ class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectState::class); /** * @internal */ -class RelayClusterProxy extends \Relay\Cluster implements ResetInterface, LazyObjectInterface +class RelayClusterProxy extends Cluster implements ResetInterface, LazyObjectInterface { use RedisProxyTrait { resetLazyObject as reset; @@ -67,7 +67,7 @@ public function dispatchEvents(): false|int return $this->initializeLazyObject()->dispatchEvents(...\func_get_args()); } - public function dump(mixed $key): \Relay\Cluster|string|false + public function dump(mixed $key): Cluster|string|false { return $this->initializeLazyObject()->dump(...\func_get_args()); } @@ -87,7 +87,7 @@ public function getTransferredBytes(): array|false return $this->initializeLazyObject()->getTransferredBytes(...\func_get_args()); } - public function getrange(mixed $key, int $start, int $end): \Relay\Cluster|string|false + public function getrange(mixed $key, int $start, int $end): Cluster|string|false { return $this->initializeLazyObject()->getrange(...\func_get_args()); } @@ -167,42 +167,42 @@ public function cluster(array|string $key_or_address, string $operation, mixed . return $this->initializeLazyObject()->cluster(...\func_get_args()); } - public function info(array|string $key_or_address, string ...$sections): \Relay\Cluster|array|false + public function info(array|string $key_or_address, string ...$sections): Cluster|array|false { return $this->initializeLazyObject()->info(...\func_get_args()); } - public function flushdb(array|string $key_or_address, bool|null $sync = null): \Relay\Cluster|bool + public function flushdb(array|string $key_or_address, bool|null $sync = null): Cluster|bool { return $this->initializeLazyObject()->flushdb(...\func_get_args()); } - public function flushall(array|string $key_or_address, bool|null $sync = null): \Relay\Cluster|bool + public function flushall(array|string $key_or_address, bool|null $sync = null): Cluster|bool { return $this->initializeLazyObject()->flushall(...\func_get_args()); } - public function dbsize(array|string $key_or_address): \Relay\Cluster|int|false + public function dbsize(array|string $key_or_address): Cluster|int|false { return $this->initializeLazyObject()->dbsize(...\func_get_args()); } - public function waitaof(array|string $key_or_address, int $numlocal, int $numremote, int $timeout): \Relay\Relay|array|false + public function waitaof(array|string $key_or_address, int $numlocal, int $numremote, int $timeout): Relay|array|false { return $this->initializeLazyObject()->waitaof(...\func_get_args()); } - public function restore(mixed $key, int $ttl, string $value, array|null $options = null): \Relay\Cluster|bool + public function restore(mixed $key, int $ttl, string $value, array|null $options = null): Cluster|bool { return $this->initializeLazyObject()->restore(...\func_get_args()); } - public function echo(array|string $key_or_address, string $message): \Relay\Cluster|string|false + public function echo(array|string $key_or_address, string $message): Cluster|string|false { return $this->initializeLazyObject()->echo(...\func_get_args()); } - public function ping(array|string $key_or_address, string|null $message = null): \Relay\Cluster|bool|string + public function ping(array|string $key_or_address, string|null $message = null): Cluster|bool|string { return $this->initializeLazyObject()->ping(...\func_get_args()); } @@ -212,22 +212,22 @@ public function idleTime(): int return $this->initializeLazyObject()->idleTime(...\func_get_args()); } - public function randomkey(array|string $key_or_address): \Relay\Cluster|bool|string + public function randomkey(array|string $key_or_address): Cluster|bool|string { return $this->initializeLazyObject()->randomkey(...\func_get_args()); } - public function time(array|string $key_or_address): \Relay\Cluster|array|false + public function time(array|string $key_or_address): Cluster|array|false { return $this->initializeLazyObject()->time(...\func_get_args()); } - public function bgrewriteaof(array|string $key_or_address): \Relay\Cluster|bool + public function bgrewriteaof(array|string $key_or_address): Cluster|bool { return $this->initializeLazyObject()->bgrewriteaof(...\func_get_args()); } - public function lastsave(array|string $key_or_address): \Relay\Cluster|false|int + public function lastsave(array|string $key_or_address): Cluster|false|int { return $this->initializeLazyObject()->lastsave(...\func_get_args()); } @@ -237,32 +237,32 @@ public function lcs(mixed $key1, mixed $key2, array|null $options = null): mixed return $this->initializeLazyObject()->lcs(...\func_get_args()); } - public function bgsave(array|string $key_or_address, bool $schedule = false): \Relay\Cluster|bool + public function bgsave(array|string $key_or_address, bool $schedule = false): Cluster|bool { return $this->initializeLazyObject()->bgsave(...\func_get_args()); } - public function save(array|string $key_or_address): \Relay\Cluster|bool + public function save(array|string $key_or_address): Cluster|bool { return $this->initializeLazyObject()->save(...\func_get_args()); } - public function role(array|string $key_or_address): \Relay\Cluster|array|false + public function role(array|string $key_or_address): Cluster|array|false { return $this->initializeLazyObject()->role(...\func_get_args()); } - public function ttl(mixed $key): \Relay\Cluster|false|int + public function ttl(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->ttl(...\func_get_args()); } - public function pttl(mixed $key): \Relay\Cluster|false|int + public function pttl(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->pttl(...\func_get_args()); } - public function exists(mixed ...$keys): \Relay\Cluster|bool|int + public function exists(mixed ...$keys): Cluster|bool|int { return $this->initializeLazyObject()->exists(...\func_get_args()); } @@ -292,17 +292,17 @@ public function client(array|string $key_or_address, string $operation, mixed .. return $this->initializeLazyObject()->client(...\func_get_args()); } - public function geoadd(mixed $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options): \Relay\Cluster|false|int + public function geoadd(mixed $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options): Cluster|false|int { return $this->initializeLazyObject()->geoadd(...\func_get_args()); } - public function geodist(mixed $key, string $src, string $dst, string|null $unit = null): \Relay\Cluster|float|false + public function geodist(mixed $key, string $src, string $dst, string|null $unit = null): Cluster|float|false { return $this->initializeLazyObject()->geodist(...\func_get_args()); } - public function geohash(mixed $key, string $member, string ...$other_members): \Relay\Cluster|array|false + public function geohash(mixed $key, string $member, string ...$other_members): Cluster|array|false { return $this->initializeLazyObject()->geohash(...\func_get_args()); } @@ -327,12 +327,12 @@ public function georadius_ro(mixed $key, float $lng, float $lat, float $radius, return $this->initializeLazyObject()->georadius_ro(...\func_get_args()); } - public function geosearchstore(mixed $dstkey, mixed $srckey, array|string $position, array|int|float $shape, string $unit, array $options = []): \Relay\Cluster|false|int + public function geosearchstore(mixed $dstkey, mixed $srckey, array|string $position, array|int|float $shape, string $unit, array $options = []): Cluster|false|int { return $this->initializeLazyObject()->geosearchstore(...\func_get_args()); } - public function geosearch(mixed $key, array|string $position, array|int|float $shape, string $unit, array $options = []): \Relay\Cluster|array|false + public function geosearch(mixed $key, array|string $position, array|int|float $shape, string $unit, array $options = []): Cluster|array|false { return $this->initializeLazyObject()->geosearch(...\func_get_args()); } @@ -347,17 +347,17 @@ public function getset(mixed $key, mixed $value): mixed return $this->initializeLazyObject()->getset(...\func_get_args()); } - public function setrange(mixed $key, int $start, mixed $value): \Relay\Cluster|false|int + public function setrange(mixed $key, int $start, mixed $value): Cluster|false|int { return $this->initializeLazyObject()->setrange(...\func_get_args()); } - public function getbit(mixed $key, int $pos): \Relay\Cluster|false|int + public function getbit(mixed $key, int $pos): Cluster|false|int { return $this->initializeLazyObject()->getbit(...\func_get_args()); } - public function bitcount(mixed $key, int $start = 0, int $end = -1, bool $by_bit = false): \Relay\Cluster|false|int + public function bitcount(mixed $key, int $start = 0, int $end = -1, bool $by_bit = false): Cluster|false|int { return $this->initializeLazyObject()->bitcount(...\func_get_args()); } @@ -367,22 +367,22 @@ public function config(array|string $key_or_address, string $operation, mixed .. return $this->initializeLazyObject()->config(...\func_get_args()); } - public function command(mixed ...$args): \Relay\Cluster|array|false|int + public function command(mixed ...$args): Cluster|array|false|int { return $this->initializeLazyObject()->command(...\func_get_args()); } - public function bitop(string $operation, string $dstkey, string $srckey, string ...$other_keys): \Relay\Cluster|false|int + public function bitop(string $operation, string $dstkey, string $srckey, string ...$other_keys): Cluster|false|int { return $this->initializeLazyObject()->bitop(...\func_get_args()); } - public function bitpos(mixed $key, int $bit, ?int $start = null, ?int $end = null, bool $by_bit = false): \Relay\Cluster|false|int + public function bitpos(mixed $key, int $bit, ?int $start = null, ?int $end = null, bool $by_bit = false): Cluster|false|int { return $this->initializeLazyObject()->bitpos(...\func_get_args()); } - public function blmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos, float $timeout): \Relay\Cluster|string|false|null + public function blmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos, float $timeout): Cluster|string|false|null { return $this->initializeLazyObject()->blmove(...\func_get_args()); } @@ -392,7 +392,7 @@ public function lmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstp return $this->initializeLazyObject()->lmove(...\func_get_args()); } - public function setbit(mixed $key, int $pos, int $value): \Relay\Cluster|false|int + public function setbit(mixed $key, int $pos, int $value): Cluster|false|int { return $this->initializeLazyObject()->setbit(...\func_get_args()); } @@ -402,12 +402,12 @@ public function acl(array|string $key_or_address, string $operation, string ...$ return $this->initializeLazyObject()->acl(...\func_get_args()); } - public function append(mixed $key, mixed $value): \Relay\Cluster|false|int + public function append(mixed $key, mixed $value): Cluster|false|int { return $this->initializeLazyObject()->append(...\func_get_args()); } - public function set(mixed $key, mixed $value, mixed $options = null): \Relay\Cluster|string|bool + public function set(mixed $key, mixed $value, mixed $options = null): Cluster|string|bool { return $this->initializeLazyObject()->set(...\func_get_args()); } @@ -417,32 +417,32 @@ public function getex(mixed $key, ?array $options = null): mixed return $this->initializeLazyObject()->getex(...\func_get_args()); } - public function setex(mixed $key, int $seconds, mixed $value): \Relay\Cluster|bool + public function setex(mixed $key, int $seconds, mixed $value): Cluster|bool { return $this->initializeLazyObject()->setex(...\func_get_args()); } - public function pfadd(mixed $key, array $elements): \Relay\Cluster|false|int + public function pfadd(mixed $key, array $elements): Cluster|false|int { return $this->initializeLazyObject()->pfadd(...\func_get_args()); } - public function pfcount(mixed $key): \Relay\Cluster|int|false + public function pfcount(mixed $key): Cluster|int|false { return $this->initializeLazyObject()->pfcount(...\func_get_args()); } - public function pfmerge(string $dstkey, array $srckeys): \Relay\Cluster|bool + public function pfmerge(string $dstkey, array $srckeys): Cluster|bool { return $this->initializeLazyObject()->pfmerge(...\func_get_args()); } - public function psetex(mixed $key, int $milliseconds, mixed $value): \Relay\Cluster|bool + public function psetex(mixed $key, int $milliseconds, mixed $value): Cluster|bool { return $this->initializeLazyObject()->psetex(...\func_get_args()); } - public function publish(string $channel, string $message): \Relay\Cluster|false|int + public function publish(string $channel, string $message): Cluster|false|int { return $this->initializeLazyObject()->publish(...\func_get_args()); } @@ -452,117 +452,117 @@ public function pubsub(array|string $key_or_address, string $operation, mixed .. return $this->initializeLazyObject()->pubsub(...\func_get_args()); } - public function setnx(mixed $key, mixed $value): \Relay\Cluster|bool + public function setnx(mixed $key, mixed $value): Cluster|bool { return $this->initializeLazyObject()->setnx(...\func_get_args()); } - public function mget(array $keys): \Relay\Cluster|array|false + public function mget(array $keys): Cluster|array|false { return $this->initializeLazyObject()->mget(...\func_get_args()); } - public function mset(array $kvals): \Relay\Cluster|array|bool + public function mset(array $kvals): Cluster|array|bool { return $this->initializeLazyObject()->mset(...\func_get_args()); } - public function msetnx(array $kvals): \Relay\Cluster|array|bool + public function msetnx(array $kvals): Cluster|array|bool { return $this->initializeLazyObject()->msetnx(...\func_get_args()); } - public function rename(mixed $key, mixed $newkey): \Relay\Cluster|bool + public function rename(mixed $key, mixed $newkey): Cluster|bool { return $this->initializeLazyObject()->rename(...\func_get_args()); } - public function renamenx(mixed $key, mixed $newkey): \Relay\Cluster|bool + public function renamenx(mixed $key, mixed $newkey): Cluster|bool { return $this->initializeLazyObject()->renamenx(...\func_get_args()); } - public function del(mixed ...$keys): \Relay\Cluster|bool|int + public function del(mixed ...$keys): Cluster|bool|int { return $this->initializeLazyObject()->del(...\func_get_args()); } - public function unlink(mixed ...$keys): \Relay\Cluster|false|int + public function unlink(mixed ...$keys): Cluster|false|int { return $this->initializeLazyObject()->unlink(...\func_get_args()); } - public function expire(mixed $key, int $seconds, string|null $mode = null): \Relay\Cluster|bool + public function expire(mixed $key, int $seconds, string|null $mode = null): Cluster|bool { return $this->initializeLazyObject()->expire(...\func_get_args()); } - public function pexpire(mixed $key, int $milliseconds): \Relay\Cluster|bool + public function pexpire(mixed $key, int $milliseconds): Cluster|bool { return $this->initializeLazyObject()->pexpire(...\func_get_args()); } - public function expireat(mixed $key, int $timestamp): \Relay\Cluster|bool + public function expireat(mixed $key, int $timestamp): Cluster|bool { return $this->initializeLazyObject()->expireat(...\func_get_args()); } - public function expiretime(mixed $key): \Relay\Cluster|false|int + public function expiretime(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->expiretime(...\func_get_args()); } - public function pexpireat(mixed $key, int $timestamp_ms): \Relay\Cluster|bool + public function pexpireat(mixed $key, int $timestamp_ms): Cluster|bool { return $this->initializeLazyObject()->pexpireat(...\func_get_args()); } public static function flushMemory(?string $endpointId = null, ?int $db = null): bool { - return \Relay\Cluster::flushMemory(...\func_get_args()); + return Cluster::flushMemory(...\func_get_args()); } - public function pexpiretime(mixed $key): \Relay\Cluster|false|int + public function pexpiretime(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->pexpiretime(...\func_get_args()); } - public function persist(mixed $key): \Relay\Cluster|bool + public function persist(mixed $key): Cluster|bool { return $this->initializeLazyObject()->persist(...\func_get_args()); } - public function type(mixed $key): \Relay\Cluster|bool|int|string + public function type(mixed $key): Cluster|bool|int|string { return $this->initializeLazyObject()->type(...\func_get_args()); } - public function lrange(mixed $key, int $start, int $stop): \Relay\Cluster|array|false + public function lrange(mixed $key, int $start, int $stop): Cluster|array|false { return $this->initializeLazyObject()->lrange(...\func_get_args()); } - public function lpush(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function lpush(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->lpush(...\func_get_args()); } - public function rpush(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function rpush(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->rpush(...\func_get_args()); } - public function lpushx(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function lpushx(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->lpushx(...\func_get_args()); } - public function rpushx(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function rpushx(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->rpushx(...\func_get_args()); } - public function lset(mixed $key, int $index, mixed $member): \Relay\Cluster|bool + public function lset(mixed $key, int $index, mixed $member): Cluster|bool { return $this->initializeLazyObject()->lset(...\func_get_args()); } @@ -592,7 +592,7 @@ public function brpoplpush(mixed $srckey, mixed $dstkey, float $timeout): mixed return $this->initializeLazyObject()->brpoplpush(...\func_get_args()); } - public function blpop(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): \Relay\Cluster|array|false|null + public function blpop(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): Cluster|array|false|null { return $this->initializeLazyObject()->blpop(...\func_get_args()); } @@ -602,7 +602,7 @@ public function blmpop(float $timeout, array $keys, string $from, int $count = 1 return $this->initializeLazyObject()->blmpop(...\func_get_args()); } - public function bzmpop(float $timeout, array $keys, string $from, int $count = 1): \Relay\Cluster|array|false|null + public function bzmpop(float $timeout, array $keys, string $from, int $count = 1): Cluster|array|false|null { return $this->initializeLazyObject()->bzmpop(...\func_get_args()); } @@ -612,22 +612,22 @@ public function lmpop(array $keys, string $from, int $count = 1): mixed return $this->initializeLazyObject()->lmpop(...\func_get_args()); } - public function zmpop(array $keys, string $from, int $count = 1): \Relay\Cluster|array|false|null + public function zmpop(array $keys, string $from, int $count = 1): Cluster|array|false|null { return $this->initializeLazyObject()->zmpop(...\func_get_args()); } - public function brpop(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): \Relay\Cluster|array|false|null + public function brpop(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): Cluster|array|false|null { return $this->initializeLazyObject()->brpop(...\func_get_args()); } - public function bzpopmax(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): \Relay\Cluster|array|false|null + public function bzpopmax(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): Cluster|array|false|null { return $this->initializeLazyObject()->bzpopmax(...\func_get_args()); } - public function bzpopmin(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): \Relay\Cluster|array|false|null + public function bzpopmin(string|array $key, string|float $timeout_or_key, mixed ...$extra_args): Cluster|array|false|null { return $this->initializeLazyObject()->bzpopmin(...\func_get_args()); } @@ -637,12 +637,12 @@ public function object(string $op, mixed $key): mixed return $this->initializeLazyObject()->object(...\func_get_args()); } - public function geopos(mixed $key, mixed ...$members): \Relay\Cluster|array|false + public function geopos(mixed $key, mixed ...$members): Cluster|array|false { return $this->initializeLazyObject()->geopos(...\func_get_args()); } - public function lrem(mixed $key, mixed $member, int $count = 0): \Relay\Cluster|false|int + public function lrem(mixed $key, mixed $member, int $count = 0): Cluster|false|int { return $this->initializeLazyObject()->lrem(...\func_get_args()); } @@ -652,19 +652,19 @@ public function lindex(mixed $key, int $index): mixed return $this->initializeLazyObject()->lindex(...\func_get_args()); } - public function linsert(mixed $key, string $op, mixed $pivot, mixed $element): \Relay\Cluster|false|int + public function linsert(mixed $key, string $op, mixed $pivot, mixed $element): Cluster|false|int { return $this->initializeLazyObject()->linsert(...\func_get_args()); } - public function ltrim(mixed $key, int $start, int $end): \Relay\Cluster|bool + public function ltrim(mixed $key, int $start, int $end): Cluster|bool { return $this->initializeLazyObject()->ltrim(...\func_get_args()); } public static function maxMemory(): int { - return \Relay\Cluster::maxMemory(); + return Cluster::maxMemory(); } public function hget(mixed $key, mixed $member): mixed @@ -672,127 +672,127 @@ public function hget(mixed $key, mixed $member): mixed return $this->initializeLazyObject()->hget(...\func_get_args()); } - public function hstrlen(mixed $key, mixed $member): \Relay\Cluster|false|int + public function hstrlen(mixed $key, mixed $member): Cluster|false|int { return $this->initializeLazyObject()->hstrlen(...\func_get_args()); } - public function hgetall(mixed $key): \Relay\Cluster|array|false + public function hgetall(mixed $key): Cluster|array|false { return $this->initializeLazyObject()->hgetall(...\func_get_args()); } - public function hkeys(mixed $key): \Relay\Cluster|array|false + public function hkeys(mixed $key): Cluster|array|false { return $this->initializeLazyObject()->hkeys(...\func_get_args()); } - public function hvals(mixed $key): \Relay\Cluster|array|false + public function hvals(mixed $key): Cluster|array|false { return $this->initializeLazyObject()->hvals(...\func_get_args()); } - public function hmget(mixed $key, array $members): \Relay\Cluster|array|false + public function hmget(mixed $key, array $members): Cluster|array|false { return $this->initializeLazyObject()->hmget(...\func_get_args()); } - public function hmset(mixed $key, array $members): \Relay\Cluster|bool + public function hmset(mixed $key, array $members): Cluster|bool { return $this->initializeLazyObject()->hmset(...\func_get_args()); } - public function hexists(mixed $key, mixed $member): \Relay\Cluster|bool + public function hexists(mixed $key, mixed $member): Cluster|bool { return $this->initializeLazyObject()->hexists(...\func_get_args()); } - public function hrandfield(mixed $key, array|null $options = null): \Relay\Cluster|array|string|false + public function hrandfield(mixed $key, array|null $options = null): Cluster|array|string|false { return $this->initializeLazyObject()->hrandfield(...\func_get_args()); } - public function hsetnx(mixed $key, mixed $member, mixed $value): \Relay\Cluster|bool + public function hsetnx(mixed $key, mixed $member, mixed $value): Cluster|bool { return $this->initializeLazyObject()->hsetnx(...\func_get_args()); } - public function hset(mixed $key, mixed ...$keys_and_vals): \Relay\Cluster|int|false + public function hset(mixed $key, mixed ...$keys_and_vals): Cluster|int|false { return $this->initializeLazyObject()->hset(...\func_get_args()); } - public function hdel(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function hdel(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->hdel(...\func_get_args()); } - public function hincrby(mixed $key, mixed $member, int $value): \Relay\Cluster|false|int + public function hincrby(mixed $key, mixed $member, int $value): Cluster|false|int { return $this->initializeLazyObject()->hincrby(...\func_get_args()); } - public function hincrbyfloat(mixed $key, mixed $member, float $value): \Relay\Cluster|bool|float + public function hincrbyfloat(mixed $key, mixed $member, float $value): Cluster|bool|float { return $this->initializeLazyObject()->hincrbyfloat(...\func_get_args()); } - public function incr(mixed $key, int $by = 1): \Relay\Cluster|false|int + public function incr(mixed $key, int $by = 1): Cluster|false|int { return $this->initializeLazyObject()->incr(...\func_get_args()); } - public function decr(mixed $key, int $by = 1): \Relay\Cluster|false|int + public function decr(mixed $key, int $by = 1): Cluster|false|int { return $this->initializeLazyObject()->decr(...\func_get_args()); } - public function incrby(mixed $key, int $value): \Relay\Cluster|false|int + public function incrby(mixed $key, int $value): Cluster|false|int { return $this->initializeLazyObject()->incrby(...\func_get_args()); } - public function decrby(mixed $key, int $value): \Relay\Cluster|false|int + public function decrby(mixed $key, int $value): Cluster|false|int { return $this->initializeLazyObject()->decrby(...\func_get_args()); } - public function incrbyfloat(mixed $key, float $value): \Relay\Cluster|false|float + public function incrbyfloat(mixed $key, float $value): Cluster|false|float { return $this->initializeLazyObject()->incrbyfloat(...\func_get_args()); } - public function sdiff(mixed $key, mixed ...$other_keys): \Relay\Cluster|array|false + public function sdiff(mixed $key, mixed ...$other_keys): Cluster|array|false { return $this->initializeLazyObject()->sdiff(...\func_get_args()); } - public function sdiffstore(mixed $key, mixed ...$other_keys): \Relay\Cluster|false|int + public function sdiffstore(mixed $key, mixed ...$other_keys): Cluster|false|int { return $this->initializeLazyObject()->sdiffstore(...\func_get_args()); } - public function sinter(mixed $key, mixed ...$other_keys): \Relay\Cluster|array|false + public function sinter(mixed $key, mixed ...$other_keys): Cluster|array|false { return $this->initializeLazyObject()->sinter(...\func_get_args()); } - public function sintercard(array $keys, int $limit = -1): \Relay\Cluster|false|int + public function sintercard(array $keys, int $limit = -1): Cluster|false|int { return $this->initializeLazyObject()->sintercard(...\func_get_args()); } - public function sinterstore(mixed $key, mixed ...$other_keys): \Relay\Cluster|false|int + public function sinterstore(mixed $key, mixed ...$other_keys): Cluster|false|int { return $this->initializeLazyObject()->sinterstore(...\func_get_args()); } - public function sunion(mixed $key, mixed ...$other_keys): \Relay\Cluster|array|false + public function sunion(mixed $key, mixed ...$other_keys): Cluster|array|false { return $this->initializeLazyObject()->sunion(...\func_get_args()); } - public function sunionstore(mixed $key, mixed ...$other_keys): \Relay\Cluster|false|int + public function sunionstore(mixed $key, mixed ...$other_keys): Cluster|false|int { return $this->initializeLazyObject()->sunionstore(...\func_get_args()); } @@ -827,12 +827,12 @@ public function sunsubscribe(array $channels = []): bool return $this->initializeLazyObject()->sunsubscribe(...\func_get_args()); } - public function touch(array|string $key_or_array, mixed ...$more_keys): \Relay\Cluster|false|int + public function touch(array|string $key_or_array, mixed ...$more_keys): Cluster|false|int { return $this->initializeLazyObject()->touch(...\func_get_args()); } - public function multi(int $mode = Relay::MULTI): \Relay\Cluster|bool + public function multi(int $mode = Relay::MULTI): Cluster|bool { return $this->initializeLazyObject()->multi(...\func_get_args()); } @@ -842,12 +842,12 @@ public function exec(): array|false return $this->initializeLazyObject()->exec(...\func_get_args()); } - public function watch(mixed $key, mixed ...$other_keys): \Relay\Cluster|bool + public function watch(mixed $key, mixed ...$other_keys): Cluster|bool { return $this->initializeLazyObject()->watch(...\func_get_args()); } - public function unwatch(): \Relay\Cluster|bool + public function unwatch(): Cluster|bool { return $this->initializeLazyObject()->unwatch(...\func_get_args()); } @@ -882,17 +882,17 @@ public function zscan(mixed $key, mixed &$iterator, mixed $match = null, int $co return $this->initializeLazyObject()->zscan($key, $iterator, ...\array_slice(\func_get_args(), 2)); } - public function zscore(mixed $key, mixed $member): \Relay\Cluster|float|false + public function zscore(mixed $key, mixed $member): Cluster|float|false { return $this->initializeLazyObject()->zscore(...\func_get_args()); } - public function keys(mixed $pattern): \Relay\Cluster|array|false + public function keys(mixed $pattern): Cluster|array|false { return $this->initializeLazyObject()->keys(...\func_get_args()); } - public function slowlog(array|string $key_or_address, string $operation, mixed ...$args): \Relay\Cluster|array|bool|int + public function slowlog(array|string $key_or_address, string $operation, mixed ...$args): Cluster|array|bool|int { return $this->initializeLazyObject()->slowlog(...\func_get_args()); } @@ -902,42 +902,42 @@ public function xadd(mixed $key, string $id, array $values, int $maxlen = 0, boo return $this->initializeLazyObject()->xadd(...\func_get_args()); } - public function smembers(mixed $key): \Relay\Cluster|array|false + public function smembers(mixed $key): Cluster|array|false { return $this->initializeLazyObject()->smembers(...\func_get_args()); } - public function sismember(mixed $key, mixed $member): \Relay\Cluster|bool + public function sismember(mixed $key, mixed $member): Cluster|bool { return $this->initializeLazyObject()->sismember(...\func_get_args()); } - public function smismember(mixed $key, mixed ...$members): \Relay\Cluster|array|false + public function smismember(mixed $key, mixed ...$members): Cluster|array|false { return $this->initializeLazyObject()->smismember(...\func_get_args()); } - public function srem(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function srem(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->srem(...\func_get_args()); } - public function sadd(mixed $key, mixed $member, mixed ...$members): \Relay\Cluster|false|int + public function sadd(mixed $key, mixed $member, mixed ...$members): Cluster|false|int { return $this->initializeLazyObject()->sadd(...\func_get_args()); } - public function sort(mixed $key, array $options = []): \Relay\Cluster|array|false|int + public function sort(mixed $key, array $options = []): Cluster|array|false|int { return $this->initializeLazyObject()->sort(...\func_get_args()); } - public function sort_ro(mixed $key, array $options = []): \Relay\Cluster|array|false|int + public function sort_ro(mixed $key, array $options = []): Cluster|array|false|int { return $this->initializeLazyObject()->sort_ro(...\func_get_args()); } - public function smove(mixed $srckey, mixed $dstkey, mixed $member): \Relay\Cluster|bool + public function smove(mixed $srckey, mixed $dstkey, mixed $member): Cluster|bool { return $this->initializeLazyObject()->smove(...\func_get_args()); } @@ -952,7 +952,7 @@ public function srandmember(mixed $key, int $count = 1): mixed return $this->initializeLazyObject()->srandmember(...\func_get_args()); } - public function scard(mixed $key): \Relay\Cluster|false|int + public function scard(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->scard(...\func_get_args()); } @@ -962,37 +962,37 @@ public function script(array|string $key_or_address, string $operation, string . return $this->initializeLazyObject()->script(...\func_get_args()); } - public function strlen(mixed $key): \Relay\Cluster|false|int + public function strlen(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->strlen(...\func_get_args()); } - public function hlen(mixed $key): \Relay\Cluster|false|int + public function hlen(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->hlen(...\func_get_args()); } - public function llen(mixed $key): \Relay\Cluster|false|int + public function llen(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->llen(...\func_get_args()); } - public function xack(mixed $key, string $group, array $ids): \Relay\Cluster|false|int + public function xack(mixed $key, string $group, array $ids): Cluster|false|int { return $this->initializeLazyObject()->xack(...\func_get_args()); } - public function xclaim(mixed $key, string $group, string $consumer, int $min_idle, array $ids, array $options): \Relay\Cluster|array|bool + public function xclaim(mixed $key, string $group, string $consumer, int $min_idle, array $ids, array $options): Cluster|array|bool { return $this->initializeLazyObject()->xclaim(...\func_get_args()); } - public function xautoclaim(mixed $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false): \Relay\Cluster|array|bool + public function xautoclaim(mixed $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false): Cluster|array|bool { return $this->initializeLazyObject()->xautoclaim(...\func_get_args()); } - public function xlen(mixed $key): \Relay\Cluster|false|int + public function xlen(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->xlen(...\func_get_args()); } @@ -1002,7 +1002,7 @@ public function xgroup(string $operation, mixed $key = null, ?string $group = nu return $this->initializeLazyObject()->xgroup(...\func_get_args()); } - public function xdel(mixed $key, array $ids): \Relay\Cluster|false|int + public function xdel(mixed $key, array $ids): Cluster|false|int { return $this->initializeLazyObject()->xdel(...\func_get_args()); } @@ -1012,32 +1012,32 @@ public function xinfo(string $operation, string|null $arg1 = null, string|null $ return $this->initializeLazyObject()->xinfo(...\func_get_args()); } - public function xpending(mixed $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null, int $idle = 0): \Relay\Cluster|array|false + public function xpending(mixed $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null, int $idle = 0): Cluster|array|false { return $this->initializeLazyObject()->xpending(...\func_get_args()); } - public function xrange(mixed $key, string $start, string $end, int $count = -1): \Relay\Cluster|array|false + public function xrange(mixed $key, string $start, string $end, int $count = -1): Cluster|array|false { return $this->initializeLazyObject()->xrange(...\func_get_args()); } - public function xread(array $streams, int $count = -1, int $block = -1): \Relay\Cluster|array|bool|null + public function xread(array $streams, int $count = -1, int $block = -1): Cluster|array|bool|null { return $this->initializeLazyObject()->xread(...\func_get_args()); } - public function xreadgroup(mixed $key, string $consumer, array $streams, int $count = 1, int $block = 1): \Relay\Cluster|array|bool|null + public function xreadgroup(mixed $key, string $consumer, array $streams, int $count = 1, int $block = 1): Cluster|array|bool|null { return $this->initializeLazyObject()->xreadgroup(...\func_get_args()); } - public function xrevrange(mixed $key, string $end, string $start, int $count = -1): \Relay\Cluster|array|bool + public function xrevrange(mixed $key, string $end, string $start, int $count = -1): Cluster|array|bool { return $this->initializeLazyObject()->xrevrange(...\func_get_args()); } - public function xtrim(mixed $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1): \Relay\Cluster|false|int + public function xtrim(mixed $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1): Cluster|false|int { return $this->initializeLazyObject()->xtrim(...\func_get_args()); } @@ -1052,22 +1052,22 @@ public function zrandmember(mixed $key, array|null $options = null): mixed return $this->initializeLazyObject()->zrandmember(...\func_get_args()); } - public function zrange(mixed $key, string $start, string $end, mixed $options = null): \Relay\Cluster|array|false + public function zrange(mixed $key, string $start, string $end, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zrange(...\func_get_args()); } - public function zrevrange(mixed $key, int $start, int $end, mixed $options = null): \Relay\Cluster|array|false + public function zrevrange(mixed $key, int $start, int $end, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zrevrange(...\func_get_args()); } - public function zrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): \Relay\Cluster|array|false + public function zrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zrangebyscore(...\func_get_args()); } - public function zrevrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): \Relay\Cluster|array|false + public function zrevrangebyscore(mixed $key, mixed $start, mixed $end, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zrevrangebyscore(...\func_get_args()); } @@ -1077,7 +1077,7 @@ public function zrevrank(mixed $key, mixed $rank, bool $withscore = false): Clus return $this->initializeLazyObject()->zrevrank(...\func_get_args()); } - public function zrangestore(mixed $dstkey, mixed $srckey, mixed $start, mixed $end, mixed $options = null): \Relay\Cluster|false|int + public function zrangestore(mixed $dstkey, mixed $srckey, mixed $start, mixed $end, mixed $options = null): Cluster|false|int { return $this->initializeLazyObject()->zrangestore(...\func_get_args()); } @@ -1087,102 +1087,102 @@ public function zrank(mixed $key, mixed $rank, bool $withscore = false): Cluster return $this->initializeLazyObject()->zrank(...\func_get_args()); } - public function zrangebylex(mixed $key, mixed $min, mixed $max, int $offset = -1, int $count = -1): \Relay\Cluster|array|false + public function zrangebylex(mixed $key, mixed $min, mixed $max, int $offset = -1, int $count = -1): Cluster|array|false { return $this->initializeLazyObject()->zrangebylex(...\func_get_args()); } - public function zrevrangebylex(mixed $key, mixed $max, mixed $min, int $offset = -1, int $count = -1): \Relay\Cluster|array|false + public function zrevrangebylex(mixed $key, mixed $max, mixed $min, int $offset = -1, int $count = -1): Cluster|array|false { return $this->initializeLazyObject()->zrevrangebylex(...\func_get_args()); } - public function zrem(mixed $key, mixed ...$args): \Relay\Cluster|false|int + public function zrem(mixed $key, mixed ...$args): Cluster|false|int { return $this->initializeLazyObject()->zrem(...\func_get_args()); } - public function zremrangebylex(mixed $key, mixed $min, mixed $max): \Relay\Cluster|false|int + public function zremrangebylex(mixed $key, mixed $min, mixed $max): Cluster|false|int { return $this->initializeLazyObject()->zremrangebylex(...\func_get_args()); } - public function zremrangebyrank(mixed $key, int $start, int $end): \Relay\Cluster|false|int + public function zremrangebyrank(mixed $key, int $start, int $end): Cluster|false|int { return $this->initializeLazyObject()->zremrangebyrank(...\func_get_args()); } - public function zremrangebyscore(mixed $key, mixed $min, mixed $max): \Relay\Cluster|false|int + public function zremrangebyscore(mixed $key, mixed $min, mixed $max): Cluster|false|int { return $this->initializeLazyObject()->zremrangebyscore(...\func_get_args()); } - public function zcard(mixed $key): \Relay\Cluster|false|int + public function zcard(mixed $key): Cluster|false|int { return $this->initializeLazyObject()->zcard(...\func_get_args()); } - public function zcount(mixed $key, mixed $min, mixed $max): \Relay\Cluster|false|int + public function zcount(mixed $key, mixed $min, mixed $max): Cluster|false|int { return $this->initializeLazyObject()->zcount(...\func_get_args()); } - public function zdiff(array $keys, array|null $options = null): \Relay\Cluster|array|false + public function zdiff(array $keys, array|null $options = null): Cluster|array|false { return $this->initializeLazyObject()->zdiff(...\func_get_args()); } - public function zdiffstore(mixed $dstkey, array $keys): \Relay\Cluster|false|int + public function zdiffstore(mixed $dstkey, array $keys): Cluster|false|int { return $this->initializeLazyObject()->zdiffstore(...\func_get_args()); } - public function zincrby(mixed $key, float $score, mixed $member): \Relay\Cluster|false|float + public function zincrby(mixed $key, float $score, mixed $member): Cluster|false|float { return $this->initializeLazyObject()->zincrby(...\func_get_args()); } - public function zlexcount(mixed $key, mixed $min, mixed $max): \Relay\Cluster|false|int + public function zlexcount(mixed $key, mixed $min, mixed $max): Cluster|false|int { return $this->initializeLazyObject()->zlexcount(...\func_get_args()); } - public function zmscore(mixed $key, mixed ...$members): \Relay\Cluster|array|false + public function zmscore(mixed $key, mixed ...$members): Cluster|array|false { return $this->initializeLazyObject()->zmscore(...\func_get_args()); } - public function zinter(array $keys, array|null $weights = null, mixed $options = null): \Relay\Cluster|array|false + public function zinter(array $keys, array|null $weights = null, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zinter(...\func_get_args()); } - public function zintercard(array $keys, int $limit = -1): \Relay\Cluster|false|int + public function zintercard(array $keys, int $limit = -1): Cluster|false|int { return $this->initializeLazyObject()->zintercard(...\func_get_args()); } - public function zinterstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): \Relay\Cluster|false|int + public function zinterstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): Cluster|false|int { return $this->initializeLazyObject()->zinterstore(...\func_get_args()); } - public function zunion(array $keys, array|null $weights = null, mixed $options = null): \Relay\Cluster|array|false + public function zunion(array $keys, array|null $weights = null, mixed $options = null): Cluster|array|false { return $this->initializeLazyObject()->zunion(...\func_get_args()); } - public function zunionstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): \Relay\Cluster|false|int + public function zunionstore(mixed $dstkey, array $keys, array|null $weights = null, mixed $options = null): Cluster|false|int { return $this->initializeLazyObject()->zunionstore(...\func_get_args()); } - public function zpopmin(mixed $key, int $count = 1): \Relay\Cluster|array|false + public function zpopmin(mixed $key, int $count = 1): Cluster|array|false { return $this->initializeLazyObject()->zpopmin(...\func_get_args()); } - public function zpopmax(mixed $key, int $count = 1): \Relay\Cluster|array|false + public function zpopmax(mixed $key, int $count = 1): Cluster|array|false { return $this->initializeLazyObject()->zpopmax(...\func_get_args()); } @@ -1197,7 +1197,7 @@ public function _masters(): array return $this->initializeLazyObject()->_masters(...\func_get_args()); } - public function copy(mixed $srckey, mixed $dstkey, array|null $options = null): \Relay\Cluster|bool + public function copy(mixed $srckey, mixed $dstkey, array|null $options = null): Cluster|bool { return $this->initializeLazyObject()->copy(...\func_get_args()); } diff --git a/src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php b/src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php index 2cb67aafb26a7..f71f3a1160049 100644 --- a/src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php +++ b/src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php @@ -17,6 +17,7 @@ use Symfony\Component\Clock\Clock; use Symfony\Component\Clock\ClockInterface; use Symfony\Component\Clock\MockClock; + use function Symfony\Component\Clock\now; /** diff --git a/src/Symfony/Component/Clock/Tests/ClockTest.php b/src/Symfony/Component/Clock/Tests/ClockTest.php index 820b4a45fd75d..f2dcff72c1c94 100644 --- a/src/Symfony/Component/Clock/Tests/ClockTest.php +++ b/src/Symfony/Component/Clock/Tests/ClockTest.php @@ -18,6 +18,7 @@ use Symfony\Component\Clock\MockClock; use Symfony\Component\Clock\NativeClock; use Symfony\Component\Clock\Test\ClockSensitiveTrait; + use function Symfony\Component\Clock\now; class ClockTest extends TestCase diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 8fcbf49d74258..3c8c287e8375f 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Console\Formatter; use Symfony\Component\Console\Exception\InvalidArgumentException; + use function Symfony\Component\String\b; /** diff --git a/src/Symfony/Component/Console/Helper/QuestionHelper.php b/src/Symfony/Component/Console/Helper/QuestionHelper.php index fa50f00688825..8e1591ec1b14a 100644 --- a/src/Symfony/Component/Console/Helper/QuestionHelper.php +++ b/src/Symfony/Component/Console/Helper/QuestionHelper.php @@ -24,6 +24,7 @@ use Symfony\Component\Console\Question\ChoiceQuestion; use Symfony\Component\Console\Question\Question; use Symfony\Component\Console\Terminal; + use function Symfony\Component\String\s; /** diff --git a/src/Symfony/Component/Console/Tests/Helper/TreeHelperTest.php b/src/Symfony/Component/Console/Tests/Helper/TreeHelperTest.php index 11cc54bad789d..15ec0f0b23707 100644 --- a/src/Symfony/Component/Console/Tests/Helper/TreeHelperTest.php +++ b/src/Symfony/Component/Console/Tests/Helper/TreeHelperTest.php @@ -25,7 +25,7 @@ public function testRenderWithoutNode() $tree = TreeHelper::createTree($output); $tree->render(); - $this->assertSame(PHP_EOL, $output->fetch()); + $this->assertSame(\PHP_EOL, $output->fetch()); } public function testRenderSingleNode() diff --git a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php index 7adb0b4d830e6..8a7c11383ff01 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/CheckCircularReferencesPass.php @@ -62,7 +62,7 @@ private function checkOutEdges(array $edges): void continue; } - $isLeaf = !!$node->getValue(); + $isLeaf = (bool) $node->getValue(); $isConcrete = !$edge->isLazy() && !$edge->isWeak(); // Skip already checked lazy services if they are still lazy. Will not gain any new information. diff --git a/src/Symfony/Component/ErrorHandler/Tests/Command/ErrorDumpCommandTest.php b/src/Symfony/Component/ErrorHandler/Tests/Command/ErrorDumpCommandTest.php index 83b2bed754e3a..670adbdb12907 100644 --- a/src/Symfony/Component/ErrorHandler/Tests/Command/ErrorDumpCommandTest.php +++ b/src/Symfony/Component/ErrorHandler/Tests/Command/ErrorDumpCommandTest.php @@ -15,7 +15,6 @@ use Symfony\Bundle\FrameworkBundle\Console\Application; use Symfony\Bundle\TwigBundle\Tests\TestCase; use Symfony\Component\Console\Tester\CommandTester; -use Symfony\Component\DependencyInjection\Container; use Symfony\Component\ErrorHandler\Command\ErrorDumpCommand; use Symfony\Component\ErrorHandler\ErrorRenderer\ErrorRendererInterface; use Symfony\Component\ErrorHandler\Exception\FlattenException; diff --git a/src/Symfony/Component/HttpClient/Response/AmpResponseV5.php b/src/Symfony/Component/HttpClient/Response/AmpResponseV5.php index dc8fa3f224006..8f56c76a41033 100644 --- a/src/Symfony/Component/HttpClient/Response/AmpResponseV5.php +++ b/src/Symfony/Component/HttpClient/Response/AmpResponseV5.php @@ -30,6 +30,7 @@ use Symfony\Component\HttpClient\Internal\Canary; use Symfony\Component\HttpClient\Internal\ClientState; use Symfony\Contracts\HttpClient\ResponseInterface; + use function Amp\delay; use function Amp\Future\awaitFirst; diff --git a/src/Symfony/Component/Security/Http/AccessToken/OAuth2/Oauth2TokenHandler.php b/src/Symfony/Component/Security/Http/AccessToken/OAuth2/Oauth2TokenHandler.php index 37f36d4d6d60c..05bda02f08fcb 100644 --- a/src/Symfony/Component/Security/Http/AccessToken/OAuth2/Oauth2TokenHandler.php +++ b/src/Symfony/Component/Security/Http/AccessToken/OAuth2/Oauth2TokenHandler.php @@ -18,6 +18,7 @@ use Symfony\Component\Security\Http\AccessToken\AccessTokenHandlerInterface; use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Contracts\HttpClient\HttpClientInterface; + use function Symfony\Component\String\u; /** diff --git a/src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTrait.php b/src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTrait.php index be79771179719..d5ab61ff2af41 100644 --- a/src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTrait.php +++ b/src/Symfony/Component/Security/Http/AccessToken/Oidc/OidcTrait.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Security\Http\AccessToken\Oidc; use Symfony\Component\Security\Core\User\OidcUser; + use function Symfony\Component\String\u; /** diff --git a/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php b/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php index c910e45485fb5..f648d0483174f 100644 --- a/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge/UserBadgeTest.php @@ -17,6 +17,7 @@ use Symfony\Component\Security\Http\Authenticator\Passport\Badge\UserBadge; use Symfony\Component\String\Slugger\AsciiSlugger; use Symfony\Component\String\UnicodeString; + use function Symfony\Component\String\u; class UserBadgeTest extends TestCase diff --git a/src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeListenerTest.php b/src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeListenerTest.php index 81ca1cb32fad3..73494f405468c 100644 --- a/src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EventListener/IsGrantedAttributeListenerTest.php @@ -224,7 +224,7 @@ public function testAccessDeniedMessages(string|Expression $attribute, string|ar $authChecker = new AuthorizationChecker(new TokenStorage(), new AccessDecisionManager((function () use (&$authChecker) { yield new ExpressionVoter(new ExpressionLanguage(), null, $authChecker); yield new RoleVoter(); - yield new class() extends Voter { + yield new class extends Voter { protected function supports(string $attribute, mixed $subject): bool { return 'POST_VIEW' === $attribute; diff --git a/src/Symfony/Component/String/Tests/FunctionsTest.php b/src/Symfony/Component/String/Tests/FunctionsTest.php index ce044e08636dd..6a69106553d19 100644 --- a/src/Symfony/Component/String/Tests/FunctionsTest.php +++ b/src/Symfony/Component/String/Tests/FunctionsTest.php @@ -15,6 +15,7 @@ use Symfony\Component\String\AbstractString; use Symfony\Component\String\ByteString; use Symfony\Component\String\UnicodeString; + use function Symfony\Component\String\b; use function Symfony\Component\String\s; use function Symfony\Component\String\u; diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php index 5f179a3cb501c..83dad9e174ead 100644 --- a/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php +++ b/src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php @@ -86,7 +86,7 @@ public function testReflectionCaster() public function testClosureCaster() { $a = $b = 123; - $var = function ($x) use ($a, &$b) {}; + $var = function ($x) use ($a, &$b) { var_dump($a, $b); }; $this->assertDumpMatchesFormat( <<<'EOTXT'