| 1 | <?php |
||
| 11 | final class Router implements RouterInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Dispatcher |
||
| 15 | */ |
||
| 16 | private $dispatcher; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var RouteInterface |
||
| 20 | */ |
||
| 21 | private $routes; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param RouteInterface[] A collection of routes |
||
| 25 | */ |
||
| 26 | 12 | public function __construct(array $routes) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 12 | public function match($method, $uri) |
|
| 65 | } |
||
| 66 |
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..