cs: don't import globals

This commit is contained in:
2021-02-01 02:49:53 +03:00
parent f6ef057e40
commit b2b444d1ef
13 changed files with 15 additions and 43 deletions

View File

@@ -22,11 +22,6 @@ use Nsq\Socket\SnappySocket;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
use Throwable;
use function addcslashes;
use function http_build_query;
use function implode;
use const PHP_EOL;
/**
* @internal
@@ -111,7 +106,7 @@ abstract class Connection
try {
$this->command('CLS');
$this->socket->close();
} catch (Throwable) {
} catch (\Throwable $e) {
}
$this->closed = true;