10000 Merge branch '4.4' into 5.3 · symfony/symfony@b778acc · GitHub
[go: up one dir, main page]

Skip to content

Commit b778acc

Browse files
Merge branch '4.4' into 5.3
* 4.4: [Cache] fix tests with RedisArray
2 parents 54df0f7 + 99b4885 commit b778acc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
uses: shivammathur/setup-php@v2
123123
with:
124124
coverage: "none"
125-
extensions: "json,couchbase,memcached,mongodb,redis,rdkafka,xsl,ldap"
125+
extensions: "json,couchbase,memcached,mongodb,redis-5.3.4,rdkafka,xsl,ldap"
126126
ini-values: date.timezone=Europe/Paris,memory_limit=-1,default_socket_timeout=10,session.gc_probability=0,apc.enable_cli=1,zend.assertions=1
127127
php-version: "${{ matrix.php }}"
128128
tools: pecl

src/Symfony/Component/Cache/Tests/Adapter/ProxyAdapterAndRedisAdapterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ static function (CacheItem $item, $expiry) {
5050
);
5151

5252
$cache = $this->createCachePool(1);
53+
$cache->clear();
5354
$value = rand();
5455
$item = $cache->getItem('foo');
5556
$setCacheItemExpiry($item, 0);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static function createConnection(string $dsn, array $options = [])
189189

190190
$initializer = static function ($redis) use ($connect, $params, $dsn, $auth, $hosts, $tls) {
191191
$host = $hosts[0]['host'] ?? $hosts[0]['path'];
192-
$port = $hosts[0]['port'] ?? null;
192+
$port = $hosts[0]['port'] ?? 6379;
193193

194194
if (isset($hosts[0]['host']) && $tls) {
195195
$host = 'tls://'.$host;

0 commit comments

Comments
 (0)
0