Skip to content

Commit 85d4388

Browse files
committed
MemcachedStorage: muted warning
1 parent b9ecbf9 commit 85d4388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Caching/Storages/MemcachedStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function __construct(string $host = 'localhost', int $port = 11211, strin
6262

6363
public function addServer(string $host = 'localhost', int $port = 11211): void
6464
{
65-
if ($this->memcached->addServer($host, $port, 1) === false) {
65+
if (@$this->memcached->addServer($host, $port, 1) === false) { // @ is escalated to exception
6666
$error = error_get_last();
6767
throw new Nette\InvalidStateException("Memcached::addServer(): $error[message].");
6868
}

0 commit comments

Comments
 (0)