10000 [Cache] Remove extra type condition in MemcachedAdapter::createConnec… · symfony/cache@40cd232 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40cd232

Browse files
committed
[Cache] Remove extra type condition in MemcachedAdapter::createConnection()
1 parent 370ca60 commit 40cd232

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Adapter/MemcachedAdapter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ public static function createConnection(array|string $servers, array $options =
9696
{
9797
if (\is_string($servers)) {
9898
$servers = [$servers];
99-
} elseif (!\is_array($servers)) {
100-
throw new InvalidArgumentException(sprintf('MemcachedAdapter::createClient() expects array or string as first argument, "%s" given.', get_debug_type($servers)));
10199
}
102100
if (!static::isSupported()) {
103101
throw new CacheException('Memcached '.(\PHP_VERSION_ID >= 80100 ? '> 3.1.5' : '>= 2.2.0').' is required.');

0 commit comments

Comments
 (0)
0