From 8c299f865f02fb1355002d32d925a343c55a840c Mon Sep 17 00:00:00 2001 From: Bilge Date: Wed, 25 Apr 2018 21:18:51 +0100 Subject: [PATCH] Fixed some RSA docblock types. --- phpseclib/Crypt/RSA.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index c15e86d3..8e76f633 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -1020,9 +1020,9 @@ class RSA * @access private * @see self::_convertPublicKey() * @see self::_convertPrivateKey() - * @param string $key + * @param string|array $key * @param int $type - * @return array + * @return array|bool */ function _parseKey($key, $type) { @@ -1505,8 +1505,9 @@ class RSA * Returns true on success and false on failure (ie. an incorrect password was provided or the key was malformed) * * @access public - * @param string $key - * @param int $type optional + * @param string|RSA|array $key + * @param bool $type optional + * @return bool */ function loadKey($key, $type = false) {