1 | <?php |
||
20 | final class DefaultDecorator implements RequestDecorator, ResponseDecorator |
||
21 | { |
||
22 | /** |
||
23 | * @var RequestIdProvider |
||
24 | */ |
||
25 | private $providerFactory; |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $requestHeader; |
||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | private $responseHeader; |
||
34 | |||
35 | /** |
||
36 | * @param RequestIdProviderFactory $providerFactory |
||
37 | * @param string $requestHeader |
||
38 | * @param string $responseHeader |
||
39 | */ |
||
40 | public function __construct( |
||
49 | |||
50 | /** |
||
51 | * @param Request $request |
||
52 | * |
||
53 | * @return Request |
||
54 | */ |
||
55 | public function decorateRequest(Request $request) |
||
65 | |||
66 | /** |
||
67 | * @param Response $response |
||
68 | * |
||
69 | * @return Response |
||
70 | */ |
||
71 | public function decorateResponse(Response $response) |
||
79 | } |
||
80 |
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..