From 84be8e1711e36d497fdb3980185288b4ddf802dc Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Tue, 23 Jun 2020 21:22:27 +0000 Subject: [PATCH] [DOCUMENTATION] Fixed type annotations and documentation of Common::size_str_to_int --- src/Util/Common.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Util/Common.php b/src/Util/Common.php index 67fd615986..93bda6a5d0 100644 --- a/src/Util/Common.php +++ b/src/Util/Common.php @@ -57,13 +57,11 @@ abstract class Common * An internal helper function that converts a $size from php.ini for * file size limit from the 'human-readable' shorthand into a int. If * $size is empty (the value is not set in php.ini), returns a default - * value (5000000) - * - * @param bool|string $size + * value (3M) * * @return int the php.ini upload limit in machine-readable format */ - public static function size_str_to_int($size): int + public static function size_str_to_int(string $size): int { // `memory_limit` can be -1 and `post_max_size` can be 0 // for unlimited. Consistency.