Sentry/Client.php
function set_user_data($id, $email=null, $data=[])
    {
        $user = array('id' => $id);
        if (isset($email)) {
            $user['email'] = $email;
        }
        $this->user_context(array_merge($user, $data));
    }
function set_user_data($id, $email=null, $data=[])
    {
        $user = array('id' => $id);
        if (isset($email)) {
            $user['email'] = $email;
        }
        $this->user_context(array_merge($user, $data));
    }
function set_user_data ( $ id , $ email = null , $ data = [ ] ) { $ user = array ( 'id' => $ id ) ; if ( isset ( $ email ) ) { $ user [ 'email' ] = $ email ; } $ this -> user_context ( array_merge ( $ user , $ data ) ) ; }
Convenience function for setting a user's ID and Email

@deprecated
@param string $id            User's ID
@param string|null $email    User's email
@param array $data           Additional user data
Convenience function for setting a user s ID and Email