Skip to content

Commit

Permalink
MAGETWO-66354: Fixed phpseclib\Net\SFTP constants used in write() met…
Browse files Browse the repository at this point in the history
…hod #6894
  • Loading branch information
vrann authored Mar 20, 2017
2 parents 8ae736b + 8e2b713 commit db17419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/Filesystem/Io/Sftp.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Sftp extends AbstractIo
const SSH2_PORT = 22;

/**
* @var \Net_SFTP $_connection
* @var \phpseclib\Net\SFTP $_connection
*/
protected $_connection = null;

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit db17419

Please sign in to comment.