1 | <?php |
||
10 | abstract class Server |
||
11 | { |
||
12 | /** @var Router */ |
||
13 | protected $router; |
||
14 | |||
15 | /** @var Request */ |
||
16 | protected $request; |
||
17 | |||
18 | 3 | public function setRouter(Router $router): Server |
|
24 | |||
25 | 4 | public function run(): string |
|
39 | |||
40 | 2 | protected function getRequest(): Request |
|
48 | |||
49 | 2 | protected function getCurrentPath(): string |
|
55 | |||
56 | abstract protected function handleStaticRoute(): ?Response; |
||
57 | |||
58 | protected function handleDynamicRoute(): ?Response |
||
66 | } |
||
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..