1 | <?php |
||
14 | class EnumBench |
||
15 | { |
||
16 | /** |
||
17 | * @var string[] |
||
18 | */ |
||
19 | private $names; |
||
20 | |||
21 | /** |
||
22 | * @var mixed[] |
||
23 | */ |
||
24 | private $values; |
||
25 | |||
26 | /** |
||
27 | * @var int[] |
||
28 | */ |
||
29 | private $ordinals; |
||
30 | |||
31 | /** |
||
32 | * @var Enum66[] |
||
33 | */ |
||
34 | private $enumerators; |
||
35 | |||
36 | /** |
||
37 | * Will be called before every subject |
||
38 | */ |
||
39 | public function init() |
||
46 | |||
47 | public function benchGetName() |
||
53 | |||
54 | public function benchGetValue() |
||
60 | |||
61 | public function benchGetOrdinal() |
||
67 | |||
68 | public function benchIsByEnumerator() |
||
74 | |||
75 | public function benchIsByValue() |
||
81 | |||
82 | public function benchGetConstants() |
||
86 | |||
87 | public function benchGetValues() |
||
91 | |||
92 | public function benchGetNames() |
||
96 | |||
97 | public function benchGetOrdinals() |
||
101 | |||
102 | public function benchGetEnumerators() |
||
106 | |||
107 | public function benchByValue() |
||
113 | |||
114 | public function benchByName() |
||
120 | |||
121 | public function benchByOrdinal() |
||
127 | |||
128 | public function benchGetByValues() |
||
134 | |||
135 | public function benchGetByEnumerator() |
||
141 | |||
142 | public function benchGetByCallStatic() |
||
148 | |||
149 | public function benchHasByEnumerator() |
||
155 | |||
156 | public function benchHasByValue() |
||
162 | } |
||
163 |
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..