It seems like $values of type array<integer,array<inte...ools\BufferInterface>>> is incompatible with the declared type array<integer,object<Bit...tools\BufferInterface>> of property $set.
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..
Loading history...
28
214
}
29
30
/**
31
* @return BufferInterface
32
*/
33
17
public function bottom(): BufferInterface
34
{
35
17
return parent::bottom();
36
}
37
38
/**
39
* @return BufferInterface
40
*/
41
public function top(): BufferInterface
42
{
43
return parent::top();
44
}
45
46
/**
47
* @return BufferInterface
48
*/
49
132
public function current(): BufferInterface
50
{
51
132
return $this->set[$this->position];
52
}
53
54
/**
55
* @param int $offset
56
* @return BufferInterface
57
*/
58
144
public function offsetGet($offset)
59
{
60
144
if (!array_key_exists($offset, $this->set)) {
61
2
throw new \OutOfRangeException('No offset found');
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..