1 | <?php |
||
16 | class ArrayMapper implements DataSourceInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var PickerInterface[] |
||
20 | */ |
||
21 | private $matchers; |
||
22 | |||
23 | /** |
||
24 | * @var DataSourceInterface |
||
25 | */ |
||
26 | private $dataSource; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | private $params; |
||
32 | |||
33 | /** |
||
34 | * ArrayMapper constructor. |
||
35 | * @Important |
||
36 | * @param array<string,PickerInterface> $matchers |
||
37 | * @param DataSourceInterface $dataSource |
||
38 | * @param array $params |
||
39 | */ |
||
40 | public function __construct(array $matchers, DataSourceInterface $dataSource, array $params = array()) |
||
46 | |||
47 | /** |
||
48 | * @return array[] |
||
49 | */ |
||
50 | public function getData() |
||
60 | |||
61 | /** |
||
62 | * @param array $params |
||
63 | */ |
||
64 | public function setParameters(array $params) |
||
71 | } |
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..