Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3.009 |
Changes | 0 |
1 | <?php |
||
46 | 4 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
47 | { |
||
48 | 4 | if ($this->level++ === 0) { |
|
49 | 4 | $this->queue->rewind(); |
|
50 | } |
||
51 | 4 | $current = $this->queue->current(); |
|
52 | 4 | if (!$current) { |
|
53 | return $this->responseFactory->createResponse(); |
||
54 | } |
||
55 | 4 | $this->queue->next(); |
|
56 | 4 | $result = call_user_func_array([$current, 'process'], [$request, $this]); |
|
57 | 4 | $this->level--; |
|
58 | 4 | return $result; |
|
59 | } |
||
60 | } |
||
61 |
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..