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

@ -4,14 +4,12 @@ declare(strict_types=1);
namespace Nsq\Exception;
use Throwable;
final class ConnectionFail extends NsqException
{
/**
* @codeCoverageIgnore
*/
public static function fromThrowable(Throwable $throwable): self
public static function fromThrowable(\Throwable $throwable): self
{
return new self($throwable->getMessage(), (int) $throwable->getCode(), $throwable);
}

View File

@ -4,8 +4,6 @@ declare(strict_types=1);
namespace Nsq\Exception;
use RuntimeException;
class NsqException extends RuntimeException
class NsqException extends \RuntimeException
{
}