Skip to content

Commit 485244e

Browse files
committed
Re #6: fixed \creocoder\flysystem\SftpFilesystem configuration checks bug
1 parent eeab6d2 commit 485244e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SftpFilesystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function init()
6868
throw new InvalidConfigException('The "username" property must be set.');
6969
}
7070

71-
if ($this->password === null || $this->privateKey === null) {
71+
if ($this->password === null && $this->privateKey === null) {
7272
throw new InvalidConfigException('Either "password" or "privateKey" property must be set.');
7373
}
7474

0 commit comments

Comments
 (0)