Skip to content

Commit

Permalink
Merge pull request #785 from golodyaevm/patch-1
Browse files Browse the repository at this point in the history
appropriate json_decode usage in MailRuResourceOwner
  • Loading branch information
stloyd committed Nov 22, 2015
2 parents 7b26e8b + 1ddebd3 commit fce5a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OAuth/ResourceOwner/MailRuResourceOwner.php
Expand Up @@ -48,7 +48,7 @@ public function getUserInformation(array $accessToken, array $extraParameters =
$url = $this->normalizeUrl($this->options['infos_url'], $params);

$content = $this->doGetUserInformationRequest($url)->getContent();
$content = json_decode($content);
$content = json_decode($content, true);
if (isset($content[0])) {
$content = (array) $content[0];
}
Expand All @@ -74,4 +74,4 @@ protected function configureOptions(OptionsResolverInterface $resolver)
'infos_url' => 'http://www.appsmail.ru/platform/api',
));
}
}
}

0 comments on commit fce5a7d

Please sign in to comment.