1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-02 17:52:59 +01:00

Merge pull request #1912 from thomascorthals/3.0

SFTP typehint fixes
This commit is contained in:
terrafrost 2023-05-18 08:17:52 -05:00 committed by GitHub
commit 2097656b4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,7 +350,9 @@ class SFTP extends SSH2
* *
* Connects to an SFTP server * 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 $port
* @param int $timeout * @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') * 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() public function getSFTPLog()
{ {