Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
change status() to getStatusCode()
Browse files Browse the repository at this point in the history
laravel response has getStatusCode in all response objects but baniry response has not status() method

fixes !289
  • Loading branch information
roboticsexpert authored Mar 10, 2020
1 parent 6b3732d commit 5a5c359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Server/AccessOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function log(Request $request, Response $response): void
$method = $request->method();
$agent = $request->userAgent();
$date = $this->date($response->getDate());
$status = $response->status();
$status = $response->getStatusCode();
$style = $this->style($status);

$this->output->writeln(
Expand All @@ -68,4 +68,4 @@ protected function style(int $status): string
{
return $status !== Response::HTTP_OK ? 'error' : 'info';
}
}
}

0 comments on commit 5a5c359

Please sign in to comment.