From 8a532241ec59ffd697e88597b059fbfe947d6f38 Mon Sep 17 00:00:00 2001 From: Lillik Date: Fri, 5 May 2017 14:57:16 +0300 Subject: [PATCH] Update Sftp.php Compatible with PHP version >7.0.13 --- src/Ssh/Sftp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ssh/Sftp.php b/src/Ssh/Sftp.php index e19767c..f86a26e 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', intval($this->getResource()), $filename); } /**