Skip to content

Commit 559036f

Browse files
Merge branch '6.0' into 6.1
* 6.0: [Semaphore] fix tests [HttpClient] fix destructing CurlResponse [Cache] Fix connecting to Redis via a socket file [DependencyInjection][FrameworkBundle] Fix using PHP 8.1 enum as parameters [PropertyAccessor] Add missing TypeError catch [HttpKernel] Fixed error count by log not displayed in WebProfilerBundle Added `kernel.event_listener` to the default list of behavior describing tags, fixing AsEventListener attribute not working on decorators. [HttpKernel] Fix FileLinkFormatter with empty xdebug.file_link_format [WebProfilerBundle] Fixes weird spacing in log message context/trace output [Notifier] fix Microsoft Teams webhook url [FrameworkBundle] Fix log channel of TagAwareAdapter [Postmark] ensure only a single tag can be used with Postmark [Mailer] allow Mailchimp to handle multiple TagHeader's [HttpClient] Fix Content-Length header when possible [Routing] AnnotationDirectoryLoader::load() may return null [DependencyInjection] Don't dump polyfilled classes in preload script
2 parents 89d8bba + 81cfe0e commit 559036f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/Caster/RedisCasterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ public function testNotConnected()
3838

3939
public function testConnected()
4040
{
41-
$redisHost = getenv('REDIS_HOST');
41+
$redisHost = explode(':', getenv('REDIS_HOST')) + [1 => 6379];
4242
$redis = new \Redis();
4343
try {
44-
$redis->connect($redisHost);
44+
$redis->connect(...$redisHost);
4545
} catch (\Exception $e) {
4646
self::markTestSkipped($e->getMessage());
4747
}
4848

4949
$xCast = <<<EODUMP
5050
Redis {%A
5151
isConnected: true
52-
host: "$redisHost"
53-
port: 6379
52+
host: "{$redisHost[0]}"
53+
port: {$redisHost[1]}
5454
auth: null
5555
mode: ATOMIC
5656
dbNum: 0

0 commit comments

Comments
 (0)