Skip to content

Commit bbef987

Browse files
authored
Merge pull request #132 from lukasleitsch/stream-download-with-delimiter
Allow delimiter in streamDownload()
2 parents bec8449 + 3ea60af commit bbef987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SimpleExcelWriter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public static function createWithoutBom(string $file, string $type = ''): static
5656
);
5757
}
5858

59-
public static function streamDownload(string $downloadName, string $type = '', callable $writerCallback = null): static
59+
public static function streamDownload(string $downloadName, string $type = '', callable $writerCallback = null, ?string $delimiter = null): static
6060
{
61-
$simpleExcelWriter = new static($downloadName, $type);
61+
$simpleExcelWriter = new static($downloadName, $type, $delimiter);
6262

6363
$writer = $simpleExcelWriter->getWriter();
6464

0 commit comments

Comments
 (0)