1 | <?php |
||
12 | trait RequestAwareTrait |
||
13 | { |
||
14 | /** |
||
15 | * @var Request|null |
||
16 | */ |
||
17 | protected $request = null; |
||
18 | |||
19 | /** |
||
20 | * @var boolean |
||
21 | */ |
||
22 | protected $autoInitRequest = false; |
||
23 | |||
24 | /** |
||
25 | * Get the Request. |
||
26 | * |
||
27 | * @param bool $autoInit |
||
28 | * @return Request |
||
29 | */ |
||
30 | public function getRequest($autoInit = false) |
||
39 | |||
40 | /** |
||
41 | * Set a container. |
||
42 | * |
||
43 | * @param Request|RequestInterface $request |
||
44 | * @return $this |
||
45 | */ |
||
46 | public function setRequest(RequestInterface $request) |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function hasRequest() |
||
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | public function isAutoInitRequest(): bool |
||
68 | |||
69 | /** |
||
70 | * @param bool $autoInitRequest |
||
71 | */ |
||
72 | public function setAutoInitRequest(bool $autoInitRequest) |
||
76 | |||
77 | public function initRequest() |
||
81 | |||
82 | /** |
||
83 | * @return Request |
||
84 | */ |
||
85 | public function newRequest() |
||
89 | } |
||
90 |
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..