diff options
author | Alexandre Alapetite <alexandre@alapetite.fr> | 2025-03-05 16:45:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-05 16:45:34 +0100 |
commit | a1b5893bd37cd733da5afaa83f8eb6af59633666 (patch) | |
tree | 06f37368f97932044c0bed2b88d9406ed3747722 | |
parent | ecdb63c33582963be055472a056c8e3e445fb5bf (diff) | |
download | freshrss-a1b5893bd37cd733da5afaa83f8eb6af59633666.tar.gz freshrss-a1b5893bd37cd733da5afaa83f8eb6af59633666.zip |
Fix Minz_Request::paramArray (#7400)
fix https://github.com/FreshRSS/FreshRSS/issues/7371
Regression from https://github.com/FreshRSS/FreshRSS/pull/7131
-rw-r--r-- | lib/Minz/Request.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index b74331146..2f76b9aa8 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -63,7 +63,7 @@ class Minz_Request { /** * @param bool $plaintext `true` to return special characters without any escaping (unsafe), `false` (default) to XML-encode them - * @return array<string|int,string|array<string,string|int|bool>> + * @return array<string|int,string|array<int|string,string|int|bool>> */ public static function paramArray(string $key, bool $plaintext = false): array { if (empty(self::$params[$key]) || !is_array(self::$params[$key])) { @@ -76,7 +76,7 @@ class Minz_Request { } elseif (is_array($v)) { $vs = []; foreach ($v as $k2 => $v2) { - if (is_string($k2) && (is_string($v2) || is_int($v2) || is_bool($v2))) { + if (is_string($v2) || is_int($v2) || is_bool($v2)) { $vs[$k2] = $v2; } } |