| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | public function getSingle(Request $request, Response $response, array $args) |
||
| 36 | { |
||
| 37 | $alert = $this->repository->readSingle($args['id']); |
||
| 38 | |||
| 39 | if (empty($alert)) { |
||
| 40 | return $this->errorEmpty($response); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->respond('item', $alert, $this->transformer, $request, $response); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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..