1 | <?php |
||
14 | class EnumBench |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private static $constants; |
||
20 | |||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private static $names; |
||
25 | |||
26 | /** |
||
27 | * @var mixed[] |
||
28 | */ |
||
29 | private static $values; |
||
30 | |||
31 | /** |
||
32 | * @var int[] |
||
33 | */ |
||
34 | private static $ordinals; |
||
35 | |||
36 | /** |
||
37 | * @var Enum66[] |
||
38 | */ |
||
39 | private static $enumerators; |
||
40 | |||
41 | /** |
||
42 | * Initialize class |
||
43 | */ |
||
44 | public static function initClass() |
||
54 | |||
55 | public function benchGetName() |
||
61 | |||
62 | public function benchGetValue() |
||
68 | |||
69 | public function benchGetOrdinal() |
||
75 | |||
76 | public function benchIsByEnumerator() |
||
82 | |||
83 | public function benchIsByValue() |
||
89 | |||
90 | public function benchGetConstants() |
||
94 | |||
95 | public function benchGetValues() |
||
99 | |||
100 | public function benchGetNames() |
||
104 | |||
105 | public function benchGetOrdinals() |
||
109 | |||
110 | public function benchGetEnumerators() |
||
114 | |||
115 | public function benchByValue() |
||
121 | |||
122 | public function benchByName() |
||
128 | |||
129 | public function benchByOrdinal() |
||
135 | |||
136 | public function benchGetByValues() |
||
142 | |||
143 | public function benchGetByEnumerator() |
||
149 | |||
150 | public function benchGetByCallStatic() |
||
156 | |||
157 | public function benchHasByEnumerator() |
||
163 | |||
164 | public function benchHasByValue() |
||
170 | } |
||
171 |
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..