From d598204874bcae81aaf25354e3aa97097376780b Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sun, 22 Jul 2018 14:17:15 +0300 Subject: [PATCH] Fix return type for Read() --- phpseclib/Net/SSH1.php | 2 +- phpseclib/Net/SSH2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SSH1.php b/phpseclib/Net/SSH1.php index e3c9071f..da5a5096 100644 --- a/phpseclib/Net/SSH1.php +++ b/phpseclib/Net/SSH1.php @@ -923,7 +923,7 @@ class SSH1 * @see self::write() * @param string $expect * @param int $mode - * @return bool + * @return string * @throws \RuntimeException on connection error * @access public */ diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index c15cf18e..b184f5d3 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3030,7 +3030,7 @@ class SSH2 * @see self::write() * @param string $expect * @param int $mode - * @return string + * @return string|bool|null * @throws \RuntimeException on connection error * @access public */