Fix the type hint in another function in User.php