diff --git a/src/Ssh/Sftp.php b/src/Ssh/Sftp.php index e19767c..a5d3e44 100644 --- a/src/Ssh/Sftp.php +++ b/src/Ssh/Sftp.php @@ -202,7 +202,7 @@ public function send($local, $distant) */ public function getUrl($filename) { - return sprintf('ssh2.sftp://%s/%s', $this->getResource(), $filename); + return sprintf('ssh2.sftp://%s/%s', (int) $this->getResource(), $filename); } /**