1 | <?php |
||
7 | class Metadata |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $version; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $flav; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $source; |
||
23 | |||
24 | /** |
||
25 | * Metadata constructor. |
||
26 | * |
||
27 | * @param $version |
||
28 | * @param $flav |
||
29 | * @param string $source |
||
30 | */ |
||
31 | public function __construct(Version $version, $flav, $source) |
||
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getVersion() |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getFlav() |
||
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | public function getSource() |
||
61 | |||
62 | /** |
||
63 | * Returns Context string representation. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function __toString() |
||
71 | } |
||
72 |
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..