| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 38 | public function log(Request $request, Response $response): void |
||
| 39 | { |
||
| 40 | $host = $request->url(); |
||
| 41 | $method = $request->method(); |
||
| 42 | $agent = $request->userAgent(); |
||
| 43 | $date = $this->date($response->getDate()); |
||
| 44 | $status = $response->getStatusCode(); |
||
| 45 | $style = $this->style($status); |
||
| 46 | |||
| 47 | $this->output->writeln( |
||
| 48 | sprintf("%s %s %s <$style>%d</$style> %s", $host, $date, $method, $status, $agent) |
||
| 49 | ); |
||
| 72 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..