public function resetConnection(): void
    {
        if (! \is_null($this->defaultConnection)) {
            $this->resolver->connection($this->connection)->disconnect();

            $this->setConnection($this->defaultConnection);
        }
    }