| 1 | <?php |
||
| 9 | class StaticBufferCollection extends StaticCollection |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var BufferInterface[] |
||
| 13 | */ |
||
| 14 | protected $set = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var int |
||
| 18 | */ |
||
| 19 | protected $position = 0; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * StaticBufferCollection constructor. |
||
| 23 | * @param BufferInterface[] $values |
||
| 24 | */ |
||
| 25 | 214 | public function __construct(BufferInterface... $values) |
|
| 26 | { |
||
| 27 | 214 | $this->set = $values; |
|
|
|
|||
| 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 |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return BufferInterface |
||
| 48 | */ |
||
| 49 | 132 | public function current(): BufferInterface |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @param int $offset |
||
| 56 | * @return BufferInterface |
||
| 57 | */ |
||
| 58 | 144 | public function offsetGet($offset) |
|
| 66 | } |
||
| 67 |
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..