1 | <?php |
||
6 | trait ResponseFactoryTrait |
||
7 | { |
||
8 | |||
9 | |||
10 | /** |
||
11 | * @var ResponseFactory |
||
12 | */ |
||
13 | public $response_factory; |
||
14 | |||
15 | |||
16 | |||
17 | /** |
||
18 | * Sets the ResponseFactory. |
||
19 | * |
||
20 | * @param ResponseFactoryInterface $response_factory |
||
21 | */ |
||
22 | 28 | public function setResponseFactory(ResponseFactoryInterface $response_factory ) |
|
27 | |||
28 | |||
29 | |||
30 | /** |
||
31 | * Returns the ResponseFactory or null. |
||
32 | * |
||
33 | * @return ResponseFactoryInterface|null |
||
34 | */ |
||
35 | 20 | public function getResponseFactory() : ?ResponseFactoryInterface |
|
39 | |||
40 | } |
||
41 |
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..