Skip to content

Commit 8e2b713

Browse files
committed
MAGETWO-66354: Fixed phpseclib\Net\SFTP constants used in write() method #6894
- Merge Pull Request #6894 from federivo/magento2:phpseclib-net-sftp-constants
2 parents 535860a + 5e9fe60 commit 8e2b713

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Filesystem/Io

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Filesystem/Io/Sftp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Sftp extends AbstractIo
2020
const SSH2_PORT = 22;
2121

2222
/**
23-
* @var \Net_SFTP $_connection
23+
* @var \phpseclib\Net\SFTP $_connection
2424
*/
2525
protected $_connection = null;
2626

@@ -184,7 +184,7 @@ public function read($filename, $destination = null)
184184
*/
185185
public function write($filename, $source, $mode = null)
186186
{
187-
$mode = is_readable($source) ? NET_SFTP_LOCAL_FILE : NET_SFTP_STRING;
187+
$mode = is_readable($source) ? \phpseclib\Net\SFTP::SOURCE_LOCAL_FILE : \phpseclib\Net\SFTP::SOURCE_STRING;
188188
return $this->_connection->put($filename, $source, $mode);
189189
}
190190

0 commit comments

Comments
 (0)