public function updateUser($uid, $properties): UserRecord
    {
        $request = $properties instanceof Request\UpdateUser
            ? $properties
            : Request\UpdateUser::withProperties($properties);

        $request = $request->withUid($uid);

        $response = $this->client->updateUser($request);

        $uid = JSON::decode((string) $response->getBody(), true)['localId'];

        return $this->getUser($uid);
    }
public function updateUser($uid, $properties): UserRecord
    {
        $request = $properties instanceof Request\UpdateUser
            ? $properties
            : Request\UpdateUser::withProperties($properties);

        $request = $request->withUid($uid);

        $response = $this->client->updateUser($request);

        $uid = JSON::decode((string) $response->getBody(), true)['localId'];

        return $this->getUser($uid);
    }
public function updateUser ( $ uid , $ properties ) : UserRecord { $ request = $ properties instanceof Request \ UpdateUser ? $ properties : Request \ UpdateUser :: withProperties ( $ properties ) ; $ request = $ request -> withUid ( $ uid ) ; $ response = $ this -> client -> updateUser ( $ request ) ; $ uid = JSON :: decode ( ( string ) $ response -> getBody ( ) , true ) [ 'localId' ] ; return $ this -> getUser ( $ uid ) ; }
Updates the given user with the given properties.

@param Uid|string $uid
@param array|Request\UpdateUser $properties

@throws InvalidArgumentException if invalid properties have been provided

@return UserRecord
Updates the given user with the given properties .