Skip to content

Commit

Permalink
Merge pull request #4 from gitHusband/master
Browse files Browse the repository at this point in the history
bug
  • Loading branch information
Ezra Lazuardy committed Apr 4, 2021
2 parents bff9b7a + 776d1fd commit 3ba9b60
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Http/Headers.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function has($key): bool
/**
* {@inheritdoc}
*/
public function normalizeKey($key)
public function normalizeKey($key): string
{
$key = strtr(strtolower($key), '_', '-');
if (strpos($key, 'http-') === 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function withRedirect($url, $status = null): Response
*
* @throws InvalidArgumentException For invalid header names or values.
*/
public function withHeader($name, $value): Response
public function withHeader($name, $value): Message
{
$clone = clone $this;
$clone->headers->set($name, $value);
Expand Down
2 changes: 1 addition & 1 deletion src/Server/HeimdallAuthorizationServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function completeAuth(AuthorizationRequest $authorizationRequest)
function return(ResponseInterface $generatedResponse): Response
{
$this->validateRequestAndResponse();
Heimdall::return($generatedResponse, $this->response);
return Heimdall::return($generatedResponse, $this->response);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Server/HeimdallResourceServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function handleException(Exception $exception)
function validate(RequestInterface $request)
{
try {
$this->server->validateAuthenticatedRequest(
return $this->server->validateAuthenticatedRequest(
Heimdall::handleRequest(
new IncomingRequest(config('app'),
$request->uri, $request->getBody(),
Expand Down

0 comments on commit 3ba9b60

Please sign in to comment.