1 | <?php |
||
5 | class ReportConfig |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $clientCustomerId; |
||
9 | |||
10 | /** @var string */ |
||
11 | protected $developerToken; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $userAgent; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $dateMin; |
||
18 | |||
19 | /** @var \DateTime */ |
||
20 | protected $dateMax; |
||
21 | |||
22 | public function __construct($clientCustomerId, $developerToken, $userAgent, \DateTime $dateMin, \DateTime $dateMax) |
||
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function getClientCustomerId() |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getDeveloperToken() |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getUserAgent() |
||
54 | |||
55 | /** |
||
56 | * @return \DateTime |
||
57 | */ |
||
58 | public function getDateMin() |
||
62 | |||
63 | /** |
||
64 | * @return \DateTime |
||
65 | */ |
||
66 | public function getDateMax() |
||
70 | |||
71 | /** |
||
72 | * @return array |
||
73 | */ |
||
74 | public function toArray(): array |
||
85 | } |
||
86 |
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..