diff --git a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php index 34768d52f61c9..095e4353c9abe 100644 --- a/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php +++ b/lib/internal/Magento/Framework/Filesystem/Io/Sftp.php @@ -20,7 +20,7 @@ class Sftp extends AbstractIo const SSH2_PORT = 22; /** - * @var \Net_SFTP $_connection + * @var \phpseclib\Net\SFTP $_connection */ protected $_connection = null; @@ -184,7 +184,7 @@ public function read($filename, $destination = null) */ public function write($filename, $source, $mode = null) { - $mode = is_readable($source) ? NET_SFTP_LOCAL_FILE : NET_SFTP_STRING; + $mode = is_readable($source) ? \phpseclib\Net\SFTP::SOURCE_LOCAL_FILE : \phpseclib\Net\SFTP::SOURCE_STRING; return $this->_connection->put($filename, $source, $mode); }