Bug Report
| Information |
Description |
| Version |
9.12.0 |
| PHP version |
8.3.1 |
| OS Platform |
Alpine Linux |
Summary
In 9.12.0 the \League\Csv\Statement::create()->process('...')->getRecords()->current() started to return NULL even if the records is not empty.
Iterating over iterator works as expected.
Standalone code, or other way to reproduce the problem
var_dump(
$records = \League\Csv\Statement::create()
->process(
\League\Csv\Reader::createFromString(
'hello;world'
)
->setDelimiter(';')
)
->getRecords()
->current()
);
Expected result
Version <9.11.0 prints:
array(2) {
[0]=>
string(5) "hello"
[1]=>
string(5) "world"
}
Actual result
Version >=9.12.0 (including master) prints:
Checks before submitting
Bug Report
Summary
In 9.12.0 the
\League\Csv\Statement::create()->process('...')->getRecords()->current()started to return NULL even if the records is not empty.Iterating over iterator works as expected.
Standalone code, or other way to reproduce the problem
Expected result
Version <9.11.0 prints:
Actual result
Version >=9.12.0 (including master) prints:
Checks before submitting