Skip to content

Commit f499531

Browse files
lucaswerkmeisterjenkins-bot
authored andcommitted
CSVUnitStorage: Use named arguments
We’re only interested in the escape parameter. Bug: T386113 Change-Id: I299de0fcdec930d72d31e0091e97e5a4ecce1f06 Follows-Up: I7c2309f348335f36870ec4dd8ed8c9e727711a59
1 parent e964229 commit f499531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/includes/Units/CSVUnitStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function loadStorageData() {
3939
return null;
4040
}
4141
$data = [];
42-
for ( $row = fgetcsv( $f, 0, ',', '"', "" ); $row !== false; $row = fgetcsv( $f, 0, ',', '"', "" ) ) {
42+
for ( $row = fgetcsv( $f, escape: "" ); $row !== false; $row = fgetcsv( $f, escape: "" ) ) {
4343
// @phan-suppress-next-line PhanTypeMismatchDimAssignment False positive
4444
$data[$row[0]] = array_slice( $row, 1 );
4545
}

0 commit comments

Comments
 (0)