We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeab6d2 commit 485244eCopy full SHA for 485244e
src/SftpFilesystem.php
@@ -68,7 +68,7 @@ public function init()
68
throw new InvalidConfigException('The "username" property must be set.');
69
}
70
71
- if ($this->password === null || $this->privateKey === null) {
+ if ($this->password === null && $this->privateKey === null) {
72
throw new InvalidConfigException('Either "password" or "privateKey" property must be set.');
73
74
0 commit comments