Skip to content

Commit c900b4c

Browse files
Merge branch '5.4' into 6.0
* 5.4: [Lock] fix tests [Serializer] Ensuring end of line character apply with constructor settings in CSV encoder [Serializer] Fix ignored callbacks in denormalization fix sorting bug
2 parents 995ac0a + b906e15 commit c900b4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Store/StoreFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Doctrine\DBAL\Connection;
1515
use PHPUnit\Framework\TestCase;
1616
use Symfony\Component\Cache\Adapter\AbstractAdapter;
17+
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
1718
use Symfony\Component\Cache\Traits\RedisProxy;
1819
use Symfony\Component\Lock\Store\DoctrineDbalPostgreSqlStore;
1920
use Symfony\Component\Lock\Store\DoctrineDbalStore;
@@ -66,7 +67,7 @@ public function validConnections()
6667
if (\extension_loaded('sysvsem')) {
6768
yield ['semaphore', SemaphoreStore::class];
6869
}
69-
if (class_exists(\Memcached::class) && class_exists(AbstractAdapter::class)) {
70+
if (class_exists(AbstractAdapter::class) && MemcachedAdapter::isSupported()) {
7071
yield ['memcached://server.com', MemcachedStore::class];
7172
yield ['memcached:?host[localhost]&host[localhost:12345]', MemcachedStore::class];
7273
}

0 commit comments

Comments
 (0)