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 */