Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 5a5c359

Browse files
change status() to getStatusCode()
laravel response has getStatusCode in all response objects but baniry response has not status() method fixes !289
1 parent 6b3732d commit 5a5c359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Server/AccessOutput.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function log(Request $request, Response $response): void
4141
$method = $request->method();
4242
$agent = $request->userAgent();
4343
$date = $this->date($response->getDate());
44-
$status = $response->status();
44+
$status = $response->getStatusCode();
4545
$style = $this->style($status);
4646

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

0 commit comments

Comments
 (0)