8000 Merge branch '6.0' into 6.1 · symfony/symfony@aca5a3a · GitHub
[go: up one dir, main page]

Skip to content

Commit aca5a3a

Browse files
Merge branch '6.0' into 6.1
* 6.0: fix merge fix merge
2 parents 4389174 + f8b482d commit aca5a3a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,10 @@ public function testAlias()
401401
$this->assertEqualsCanonicalizing([RegisterTestController::class.'::fooAction', 'foo::fooAction'], array_keys($locator));
402402
}
403403

404-
public function testBindWithTarget()
404+
/**
405+
* @requires PHP 8.1
406+
*/
407+
public function testEnumArgumentIsIgnored()
405408
{
406409
$container = new ContainerBuilder();
407410
$resolver = $container->register('argument_resolver.service')->addArgument([]);
@@ -417,10 +420,7 @@ public function testBindWithTarget()
417420
$this->assertEmpty(array_keys($locator), 'enum typed argument is ignored');
418421
}
419422

420-
/**
421-
* @requires PHP 8.1
422-
*/
423-
public function testEnumArgumentIsIgnored()
423+
public function testBindWithTarget()
424424
{
425425
$container = new ContainerBuilder();
426426
$resolver = $container->register('argument_resolver.service')->addArgument([]);

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,11 @@ public function cleanup(): void
552552
private function rawCommand(string $command, ...$arguments): mixed
553553
{
554554
try {
555-
$result = $this->connection->rawCommand($command, $this->queue, ...$arguments);
555+
if ($this->connection instanceof \RedisCluster || $this->connection instanceof RedisClusterProxy) {
556+
$result = $this->connection->rawCommand($this->queue, $command, $this->queue, ...$arguments);
557+
} else {
558+
$result = $this->connection->rawCommand($command, $this->queue, ...$arguments);
559+
}
556560
} catch (\RedisException $e) {
557561
throw new TransportException($e->getMessage(), 0, $e);
558562
}

0 commit comments

Comments
 (0)
0