From c250bf021746a43cbab0fc86059c3dd69ac6d4b1 Mon Sep 17 00:00:00 2001 From: xdrew Date: Tue, 13 Sep 2016 07:34:21 +0300 Subject: [PATCH] Pass by reference notice fix --- src/Vkontakte.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Vkontakte.php b/src/Vkontakte.php index b789903..23652e3 100644 --- a/src/Vkontakte.php +++ b/src/Vkontakte.php @@ -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();