1 | <?php |
||
19 | final class FieldDescriptionCollection implements \ArrayAccess, \Countable |
||
20 | { |
||
21 | /** |
||
22 | * @var FieldDescriptionInterface[] |
||
23 | */ |
||
24 | private $elements = []; |
||
25 | |||
26 | public function add(FieldDescriptionInterface $fieldDescription): void |
||
30 | |||
31 | public function getElements(): array |
||
35 | |||
36 | public function has(string $name): bool |
||
40 | |||
41 | /** |
||
42 | * @throws \InvalidArgumentException |
||
43 | */ |
||
44 | public function get(string $name): FieldDescriptionInterface |
||
52 | |||
53 | public function remove(string $name): void |
||
59 | |||
60 | public function offsetExists($offset): bool |
||
64 | |||
65 | public function offsetGet($offset): FieldDescriptionInterface |
||
69 | |||
70 | public function offsetSet($offset, $value): void |
||
74 | |||
75 | public function offsetUnset($offset): void |
||
79 | |||
80 | public function count(): int |
||
84 | |||
85 | public function reorder(array $keys): void |
||
93 | } |
||
94 |
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..