8000 Merge branch '4.4' into 5.4 · symfony/symfony@698019d · GitHub
[go: up one dir, main page]

Skip to content

Commit 698019d

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Lock] fix tests
2 parents 1189063 + 2ba3b71 commit 698019d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Lock/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)
0