diff -u b/core/modules/user/src/UserData.php b/core/modules/user/src/UserData.php --- b/core/modules/user/src/UserData.php +++ b/core/modules/user/src/UserData.php @@ -30,9 +30,7 @@ * {@inheritdoc} */ public function get($module, $uid = NULL, $name = NULL, $value = NULL) { - $args = func_get_args(); - array_shift($args); - $args = array_combine(['uid', 'name', 'value'], $args + [NULL, NULL, NULL]); + $args = ['uid' => $uid, 'name' => $name, 'value' => $value]; if (!$args_not_set = array_filter($args, 'is_null')) { throw new \InvalidArgumentException('All four arguments can not be set at the same time.'); }