Skip to content

Commit

Permalink
Merge pull request #7 from xdrew/master
Browse files Browse the repository at this point in the history
Pass by reference notice fix
  • Loading branch information
j4k authored Sep 13, 2016
2 parents 3cddf40 + c250bf0 commit 9bbcf57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Vkontakte.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ protected function getDefaultScopes()
protected function checkResponse(ResponseInterface $response, $data)
{
// Metadata info
$contentType = $response->getHeader('Content-Type');
/** @noinspection PhpPassByRefInspection */
$contentType = reset((explode(';', reset($contentType))));
$contentTypeRaw = $response->getHeader('Content-Type');
$contentTypeArray = explode(';', reset($contentTypeRaw));
$contentType = reset($contentTypeArray);
// Response info
$responseCode = $response->getStatusCode();
$responseMessage = $response->getReasonPhrase();
Expand Down

0 comments on commit 9bbcf57

Please sign in to comment.