MDL-83335 core: Explicitly specify escape with fgetcsv/fputcsv
PHP 8.4 requires that a value be provided for the `$escape` parameter to both `fgetcsv()` and `fputcsv()`.
This commit is contained in:
@@ -282,7 +282,7 @@ class phpunit_dataset {
|
||||
rewind($fh);
|
||||
|
||||
// We just accept default, delimiter = comma, enclosure = double quote.
|
||||
while ( ($row = fgetcsv($fh) ) !== false ) {
|
||||
while ( ($row = fgetcsv($fh, escape: '\\') ) !== false ) {
|
||||
if (empty($this->columns[$tablename])) {
|
||||
$this->columns[$tablename] = $row;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user