1 | <?php |
||
14 | class EnumBench |
||
15 | { |
||
16 | /** |
||
17 | * @var array |
||
18 | */ |
||
19 | private $constants; |
||
20 | |||
21 | /** |
||
22 | * @var string[] |
||
23 | */ |
||
24 | private $names; |
||
25 | |||
26 | /** |
||
27 | * @var mixed[] |
||
28 | */ |
||
29 | private $values; |
||
30 | |||
31 | /** |
||
32 | * @var int[] |
||
33 | */ |
||
34 | private $ordinals; |
||
35 | |||
36 | /** |
||
37 | * @var Enum66[] |
||
38 | */ |
||
39 | private $enumerators; |
||
40 | |||
41 | /** |
||
42 | * Will be called before every subject |
||
43 | */ |
||
44 | public function init() |
||
45 | { |
||
46 | $this->constants = Enum66::getConstants(); |
||
47 | $this->names = Enum66::getNames(); |
||
|
|||
48 | $this->values = Enum66::getValues(); |
||
49 | $this->ordinals = Enum66::getOrdinals(); |
||
50 | $this->enumerators = Enum66::getEnumerators(); |
||
51 | } |
||
52 | |||
53 | public function benchGetName() |
||
59 | |||
60 | public function benchGetValue() |
||
66 | |||
67 | public function benchGetOrdinal() |
||
73 | |||
74 | public function benchIsByEnumerator() |
||
80 | |||
81 | public function benchIsByValue() |
||
87 | |||
88 | public function benchGetConstants() |
||
92 | |||
93 | public function benchGetValues() |
||
97 | |||
98 | public function benchGetNames() |
||
102 | |||
103 | public function benchGetOrdinals() |
||
107 | |||
108 | public function benchGetEnumerators() |
||
112 | |||
113 | public function benchByValue() |
||
119 | |||
120 | public function benchByName() |
||
126 | |||
127 | public function benchByOrdinal() |
||
133 | |||
134 | public function benchGetByValues() |
||
140 | |||
141 | public function benchGetByEnumerator() |
||
147 | |||
148 | public function benchGetByCallStatic() |
||
154 | |||
155 | public function benchHasByEnumerator() |
||
161 | |||
162 | public function benchHasByValue() |
||
168 | } |
||
169 |
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..