aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--lib/Minz/Request.php4
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;
}
}