Skip to content

Commit 7a9eb00

Browse files
committed
Fix tests
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 3edd60b commit 7a9eb00

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Data/Util/RingBuffer.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ public function offsetExists(mixed $key): bool
4949

5050
/**
5151
* {@inheritdoc}
52-
*
53-
* @return mixed
5452
*/
55-
public function offsetGet(mixed $key)
53+
public function offsetGet(mixed $key): mixed
5654
{
5755
if (!isset($this->indices[$key])) {
5856
throw new OutOfBoundsException(sprintf('The index "%s" does not exist.', $key));
@@ -63,10 +61,8 @@ public function offsetGet(mixed $key)
6361

6462
/**
6563
* {@inheritdoc}
66-
*
67-
* @return void
6864
*/
69-
public function offsetSet(mixed $key, mixed $value)
65+
public function offsetSet(mixed $key, mixed $value): void
7066
{
7167
if (false !== ($keyToRemove = array_search($this->cursor, $this->indices))) {
7268
unset($this->indices[$keyToRemove]);
@@ -80,10 +76,8 @@ public function offsetSet(mixed $key, mixed $value)
8076

8177
/**
8278
* {@inheritdoc}
83-
*
84-
* @return void
8579
*/
86-
public function offsetUnset(mixed $key)
80+
public function offsetUnset(mixed $key): void
8781
{
8882
if (isset($this->indices[$key])) {
8983
$this->values[$this->indices[$key]] = null;

0 commit comments

Comments
 (0)