Skip to content
Permalink
Browse files

MemcachedStorage: muted warning

  • Loading branch information
dg committed Nov 28, 2019
1 parent b9ecbf9 commit 85d4388d5e9deb7ac6f6e9c60a33f57b420d3d4a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Caching/Storages/MemcachedStorage.php
@@ -62,7 +62,7 @@ public function __construct(string $host = 'localhost', int $port = 11211, strin
public function addServer(string $host = 'localhost', int $port = 11211): void
{
if ($this->memcached->addServer($host, $port, 1) === false) {
if (@$this->memcached->addServer($host, $port, 1) === false) { // @ is escalated to exception
$error = error_get_last();
throw new Nette\InvalidStateException("Memcached::addServer(): $error[message].");
}

0 comments on commit 85d4388

Please sign in to comment.
You can’t perform that action at this time.