1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-29 11:10:18 +02:00

Merge pull request #5798 from rxu/ticket/16277

[ticket/16277] Move from each() function
This commit is contained in:
Marc Alexander
2020-01-01 16:35:42 +01:00
10 changed files with 29 additions and 32 deletions

View File

@@ -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;