Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 0 |
1 | <?php |
||
25 | 4 | public function run(): string |
|
26 | { |
||
27 | 4 | $response = $this->handleStaticRoute(); |
|
28 | |||
29 | 4 | if (!$response) { |
|
30 | $response = $this->handleDynamicRoute(); |
||
31 | } |
||
32 | |||
33 | 4 | if (!$response) { |
|
34 | throw Http::notFound($this->getCurrentPath()); |
||
35 | } |
||
36 | |||
37 | 4 | return $response->getBody()->getContents(); |
|
38 | } |
||
39 | |||
67 |
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..