Fix some PHP8.1 issues if possible

This commit is contained in:
Philipp Holzer 2022-11-09 23:16:12 +01:00
commit 477bec1977
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
4 changed files with 9 additions and 9 deletions

View file

@ -60,7 +60,7 @@ class ReversedFileReader implements \Iterator
$this->fh = fopen($filename, 'r');
if (!$this->fh) {
// this should use a custom exception.
throw \Exception("Unable to open $filename");
throw new \Exception("Unable to open $filename");
}
$this->filesize = filesize($filename);
$this->pos = -1;