Skip to content

Commit

Permalink
Make Csv Reader Consistent With Other Branches
Browse files Browse the repository at this point in the history
Very minor tweaks.
  • Loading branch information
oleibman committed Sep 6, 2024
1 parent e69cfb9 commit 8edc294
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PhpSpreadsheet/Reader/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,14 @@ public function getPreserveNullString(): bool
*
* @param resource $stream
*
* @return array|false
* @return array<int,?string>|false
*/
private static function getCsv(
$stream,
?int $length = null,
string $separator = ",",
string $enclosure = "\"",
string $escape = "\\"
string $separator = ',',
string $enclosure = '"',
string $escape = '\\'
) {
if (PHP_VERSION_ID >= 80400 && $escape !== '') {
return @fgetcsv($stream, $length, $separator, $enclosure, $escape);
Expand Down

0 comments on commit 8edc294

Please sign in to comment.