Skip to content
Snippets Groups Projects
Commit 4ce8361a authored by Youri van Koppen's avatar Youri van Koppen
Browse files

Issue #3364313 by hlopez, ptmkenny: Fixed a few PHP 8.1 deprecations.

parent e7a280b2
Branches
Tags
No related merge requests found
Pipeline #151818 passed with warnings
......@@ -33,7 +33,7 @@ class LineIterator extends SplFileObject {
/**
* Implements Iterator::rewind().
*/
public function rewind() {
public function rewind(): void {
parent::rewind();
if ($this->startPosition) {
$this->fseek($this->startPosition);
......@@ -44,7 +44,7 @@ class LineIterator extends SplFileObject {
/**
* Implements Iterator::next().
*/
public function next() {
public function next(): void {
$this->linesRead++;
parent::next();
}
......@@ -52,7 +52,7 @@ class LineIterator extends SplFileObject {
/**
* Implements Iterator::valid().
*/
public function valid() {
public function valid(): bool {
return (!$this->lineLimit || $this->linesRead < $this->lineLimit) && parent::valid() && parent::current();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment