1 | <?php |
||
18 | class RequestHandler implements RequestHandlerInterface |
||
19 | { |
||
20 | /** @var Iterator the middleware to process */ |
||
21 | protected $queue; |
||
22 | |||
23 | /** @var ResponseFactoryInterface PSR-17 HTTP response factory */ |
||
24 | protected $responseFactory; |
||
25 | |||
26 | /** @var integer level */ |
||
27 | protected $level = 0; |
||
28 | |||
29 | /** |
||
30 | * Constructor |
||
31 | * |
||
32 | * @param ResponseFactoryInterface $responseFactory |
||
33 | */ |
||
34 | 4 | public function __construct(MiddlewareQueue $queue, ResponseFactoryInterface $responseFactory) |
|
39 | |||
40 | /** |
||
41 | * Handle the request and return a response. |
||
42 | * |
||
43 | * @param ServerRequestInterface $request |
||
44 | * @return ResponseInterface |
||
45 | */ |
||
46 | 4 | public function handle(ServerRequestInterface $request): ResponseInterface |
|
60 | } |
||
61 |
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..