Skip to content

Commit

Permalink
Pass by reference notice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xdrew committed Sep 13, 2016
1 parent 3cddf40 commit c250bf0
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 c250bf0

Please sign in to comment.