From c71c217fd59278a80561cb0380f7f83f4cc2762c Mon Sep 17 00:00:00 2001 From: thomascorthals Date: Mon, 15 May 2023 11:15:49 +0200 Subject: [PATCH] SFTP typehint fixes --- phpseclib/Net/SFTP.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index 3330acd6..dd26824a 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -350,7 +350,9 @@ class SFTP extends SSH2 * * Connects to an SFTP server * - * @param string $host + * $host can either be a string, representing the host, or a stream resource. + * + * @param mixed $host * @param int $port * @param int $timeout */ @@ -3407,7 +3409,7 @@ class SFTP extends SSH2 * * Returns a string if NET_SFTP_LOGGING == self::LOG_COMPLEX, an array if NET_SFTP_LOGGING == self::LOG_SIMPLE and false if !defined('NET_SFTP_LOGGING') * - * @return array|string + * @return array|string|false */ public function getSFTPLog() {