1 | <?php |
||
11 | trait ResponseAwareTrait |
||
12 | { |
||
13 | /** |
||
14 | * @var Response|null |
||
15 | */ |
||
16 | protected $response = null; |
||
17 | |||
18 | /** |
||
19 | * @var boolean |
||
20 | */ |
||
21 | protected $autoInitResponse = false; |
||
22 | |||
23 | /** |
||
24 | * Get the container. |
||
25 | * |
||
26 | * @param bool $autoInit |
||
27 | * @return Response |
||
28 | */ |
||
29 | public function getResponse($autoInit = false) |
||
38 | |||
39 | /** |
||
40 | * Set a container. |
||
41 | * |
||
42 | * @param Response|ResponseInterface $response |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setResponse(ResponseInterface $response) |
||
51 | |||
52 | /** |
||
53 | * @return bool |
||
54 | */ |
||
55 | public function hasResponse() |
||
59 | |||
60 | /** |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function isAutoInitResponse(): bool |
||
67 | |||
68 | /** |
||
69 | * @param bool $autoInitResponse |
||
70 | */ |
||
71 | public function setAutoInitResponse(bool $autoInitResponse) |
||
75 | |||
76 | public function initResponse() |
||
80 | |||
81 | /** |
||
82 | * @return Response |
||
83 | */ |
||
84 | public function newResponse() |
||
88 | } |
||
89 |
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..