Skip to content

Commit e69cfb9

Browse files
committed
Used Php8 Construct But Still Need to Support 7.4
1 parent 7551a9f commit e69cfb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PhpSpreadsheet/Reader/Csv.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,16 @@ public function getPreserveNullString(): bool
649649
* as escape Character.
650650
*
651651
* @param resource $stream
652+
*
653+
* @return array|false
652654
*/
653655
private static function getCsv(
654656
$stream,
655657
?int $length = null,
656658
string $separator = ",",
657659
string $enclosure = "\"",
658660
string $escape = "\\"
659-
): array|false {
661+
) {
660662
if (PHP_VERSION_ID >= 80400 && $escape !== '') {
661663
return @fgetcsv($stream, $length, $separator, $enclosure, $escape);
662664
}

0 commit comments

Comments
 (0)