diff --git a/src/SimpleExcelWriter.php b/src/SimpleExcelWriter.php index ac8f907..176d388 100644 --- a/src/SimpleExcelWriter.php +++ b/src/SimpleExcelWriter.php @@ -56,9 +56,9 @@ public static function createWithoutBom(string $file, string $type = ''): static ); } - public static function streamDownload(string $downloadName, string $type = '', callable $writerCallback = null): static + public static function streamDownload(string $downloadName, string $type = '', callable $writerCallback = null, ?string $delimiter = null): static { - $simpleExcelWriter = new static($downloadName, $type); + $simpleExcelWriter = new static($downloadName, $type, $delimiter); $writer = $simpleExcelWriter->getWriter();