More fixes for PHP 7.4 compat
This commit is contained in:
		@@ -70,13 +70,13 @@ class CsvReader implements ReaderInterface
 | 
			
		||||
        $this->checkLoadedSlice();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function key(): mixed
 | 
			
		||||
    public function key()
 | 
			
		||||
    {
 | 
			
		||||
        //$this->checkLoadedSlice();
 | 
			
		||||
        return $this->counter;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function current(): mixed
 | 
			
		||||
    public function current()
 | 
			
		||||
    {
 | 
			
		||||
        //$this->checkLoadedSlice();   
 | 
			
		||||
        return $this->data[$this->currentIndex];
 | 
			
		||||
@@ -102,4 +102,4 @@ class CsvReader implements ReaderInterface
 | 
			
		||||
        return ($this->currentFile < count($this->files) && ($this->currentIndex < count($this->data)));
 | 
			
		||||
        
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -61,13 +61,13 @@ class JsonReader implements ReaderInterface
 | 
			
		||||
        $this->checkLoadedSlice();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function key(): mixed
 | 
			
		||||
    public function key()
 | 
			
		||||
    {
 | 
			
		||||
        //$this->checkLoadedSlice();
 | 
			
		||||
        return $this->counter;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function current(): mixed
 | 
			
		||||
    public function current()
 | 
			
		||||
    {
 | 
			
		||||
        //$this->checkLoadedSlice();   
 | 
			
		||||
        return $this->data[$this->currentIndex];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user