| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 3 | public function __construct(IRoutes $routes, IRequest $request) |
|
| 53 | { |
||
| 54 | 3 | $this->routes = []; |
|
|
|
|||
| 55 | 3 | $this->request = $request; |
|
| 56 | 3 | $this->activeRoute = ''; |
|
| 57 | 3 | $this->params = []; |
|
| 58 | 3 | $this->matchingRoute = ''; |
|
| 59 | 3 | $this->setRoutes($routes); |
|
| 60 | 3 | $this->activeRoute = substr($this->request->getUri(), 1); |
|
| 61 | 3 | return $this; |
|
| 62 | } |
||
| 113 |
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..