From 3ad3693d31d6685d590ae67da0367b3c0976407e Mon Sep 17 00:00:00 2001 From: Kevin van Hulst Date: Wed, 4 Jan 2023 09:49:50 +0100 Subject: [PATCH] fix "Creating default object from empty value" error --- phpseclib/Net/SFTP.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 8d0e96c6..1c675a6e 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -715,7 +715,7 @@ class SFTP extends SSH2 if (!$this->canonicalize_paths) { throw $e; } - $this->$this->canonicalize_paths = false; + $this->canonicalize_paths = false; $this->reset_connection(NET_SSH2_DISCONNECT_CONNECTION_LOST); }