From fe041b86b1d6e109cbd12e1cf7921f8c9702a5f4 Mon Sep 17 00:00:00 2001 From: Paul Andrieux Date: Fri, 8 Dec 2017 17:22:13 +0100 Subject: [PATCH] cast ssh resource into int to be compliant with php >7.0 --- 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..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); } /**