Skip to content

Commit

Permalink
Fixed depreciations in LogReader
Browse files Browse the repository at this point in the history
  • Loading branch information
evotodi committed Mar 31, 2022
1 parent 3941a34 commit 3a50d76
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Reader/LogReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function offsetExists($offset): bool

/**
* {@inheritdoc}
* @return mixed
* @throws Exception
*/
public function offsetGet($offset)
Expand All @@ -94,37 +95,38 @@ public function offsetGet($offset)
/**
* {@inheritdoc}
*/
public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
throw new RuntimeException("LogReader is read-only.");
}

/**
* {@inheritdoc}
*/
public function offsetUnset($offset)
public function offsetUnset($offset): void
{
throw new RuntimeException("LogReader is read-only.");
}

/**
* {@inheritdoc}
*/
public function rewind()
public function rewind(): void
{
$this->file->rewind();
}

/**
* {@inheritdoc}
*/
public function next()
public function next(): void
{
$this->file->next();
}

/**
* {@inheritdoc}
* @return mixed
* @throws Exception
*/
public function current()
Expand All @@ -135,7 +137,7 @@ public function current()
/**
* {@inheritdoc}
*/
public function key()
public function key(): int
{
return $this->file->key();
}
Expand Down

0 comments on commit 3a50d76

Please sign in to comment.