Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
23 | { |
||
24 | /** |
||
25 | * @var array $config |
||
26 | */ |
||
27 | $config = $container->get('config'); |
||
28 | $this->routes = $container->get('routes'); |
||
|
|||
29 | $request = $container->get(ServerRequestInterface::class); |
||
30 | $this->router = new Router( |
||
31 | $config['app']['default_return_type'] ?? Router::HTML, |
||
32 | $request->getMethod(), |
||
33 | $request->getUri()->getPath(), |
||
34 | '', |
||
35 | $config['app']['cache_file'] |
||
36 | ); |
||
37 | return $this->getRouter(); |
||
38 | } |
||
39 | |||
52 | } |
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..