Some more deprecation fixups

This commit is contained in:
Philipp 2023-07-05 22:20:52 +02:00
parent 00cd346255
commit f68dd99518
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
5 changed files with 20 additions and 5 deletions

View file

@ -89,7 +89,7 @@ class ReversedFileReader implements \Iterator
*
* @return string|null Depending on data being buffered
*/
private function _readline()
private function _readline(): ?string
{
$buffer = & $this->buffer;
while (true) {
@ -112,6 +112,7 @@ class ReversedFileReader implements \Iterator
* @see Iterator::next()
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
++$this->key;
@ -124,6 +125,7 @@ class ReversedFileReader implements \Iterator
* @see Iterator::rewind()
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
if ($this->filesize > 0) {