Skip to content

Commit 4167206

Browse files
authored
Merge pull request swooletw#385 from sibche/master
change status() to getStatusCode()
2 parents 3ba23e6 + 5a5c359 commit 4167206

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)