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

@ -12,7 +12,6 @@ use Nsq\Protocol\Error;
use Nsq\Protocol\Message;
use Nsq\Protocol\Response;
use Psr\Log\LoggerInterface;
use function microtime;
final class Consumer extends Connection
{
@ -31,7 +30,7 @@ final class Consumer extends Connection
/**
* @psalm-return Generator<int, Message|float|null, int|null, void>
*/
public function generator(): Generator
public function generator(): \Generator
{
$this->command('SUB', [$this->topic, $this->channel])->checkIsOK();