src/Viserio/Component/Filesystem/Adapter/SftpConnector.php
public function connect(): AdapterInterface
    {
        if (! isset($this->resolvedOptions['password']) && ! isset($this->resolvedOptions['privateKey'])) {
            throw new InvalidArgumentException('The sftp connector requires [password] or [privateKey] configuration.');
        }

        return new SftpAdapter($this->resolvedOptions);
    }
public function connect(): AdapterInterface
    {
        if (! isset($this->resolvedOptions['password']) && ! isset($this->resolvedOptions['privateKey'])) {
            throw new InvalidArgumentException('The sftp connector requires [password] or [privateKey] configuration.');
        }

        return new SftpAdapter($this->resolvedOptions);
    }
{@inheritdoc}