Sometimes, VKontakte sets user IDentificator as uid or id – use both of them in ID getter
This commit is contained in:
@@ -39,7 +39,7 @@ class User implements ResourceOwnerInterface
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return (int)$this->response['uid'];
|
||||
return (int)($this->getField('uid') ?: $this->getField('id'));
|
||||
}
|
||||
|
||||
// ========== helpers ==========
|
||||
|
||||
Reference in New Issue
Block a user