aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/request
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2019-12-29 18:56:36 +0700
committerrxu <rxu@mail.ru>2019-12-29 18:56:36 +0700
commit80de9f6a68d7b50eb5387cdc2b99624484e75201 (patch)
treedfb76923a3cc418a35e391e8c8c58534c23d5551 /phpBB/phpbb/request
parent94808e2cbc880aa16212aa24c7dd7e94bf511305 (diff)
downloadforums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.gz
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.bz2
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.tar.xz
forums-80de9f6a68d7b50eb5387cdc2b99624484e75201.zip
[ticket/16277] Move from each() function
PHPBB3-16277
Diffstat (limited to 'phpBB/phpbb/request')
-rw-r--r--phpBB/phpbb/request/type_cast_helper.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/request/type_cast_helper.php b/phpBB/phpbb/request/type_cast_helper.php
index 912494998d..39d5908fd3 100644
--- a/phpBB/phpbb/request/type_cast_helper.php
+++ b/phpBB/phpbb/request/type_cast_helper.php
@@ -106,7 +106,8 @@ class type_cast_helper implements \phpbb\request\type_cast_helper_interface
return;
}
- list($default_key, $default_value) = each($default);
+ $default_key = key($default);
+ $default_value = current($default);
$key_type = gettype($default_key);
$_var = $var;