Skip to content

Commit

Permalink
MemcachedStorage: muted warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 28, 2019
1 parent b9ecbf9 commit 85d4388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Caching/Storages/MemcachedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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].");
}
Expand Down

0 comments on commit 85d4388

Please sign in to comment.