I'm getting this warning when running this code in php 8.1:
Deprecated function: Return type of Keboola\Csv\CsvReader::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 5 of /var/www/vendor/keboola/csv/src/CsvReader.php).
This PR sets the return types of CsvReader to match that of Iterator in order to get rid of these warnings.
I'm getting this warning when running this code in php 8.1:
Deprecated function: Return type of Keboola\Csv\CsvReader::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in include() (line 5 of /var/www/vendor/keboola/csv/src/CsvReader.php).
This PR sets the return types of CsvReader to match that of Iterator in order to get rid of these warnings.
https://www.php.net/manual/en/class.iterator.php