Updated dependencies, more strict static analysis

This commit is contained in:
Lukáš Unger
2018-02-12 10:19:16 +01:00
parent 7a6c35bc29
commit cd5233392e
9 changed files with 22 additions and 27 deletions

View File

@@ -262,13 +262,10 @@ class OAuthServerException extends \Exception
$this->redirectUri .= (strstr($this->redirectUri, '?') === false) ? '?' : '&';
}
/** @var ResponseInterface $response */
$response = $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
return $response;
return $response->withStatus(302)->withHeader('Location', $this->redirectUri . http_build_query($payload));
}
foreach ($headers as $header => $content) {
/** @var ResponseInterface $response */
$response = $response->withHeader($header, $content);
}