@@ -25,7 +25,7 @@ class SimpleExcelWriter
25
25
public static function create (
26
26
string $ file ,
27
27
string $ type = '' ,
28
- callable $ configureWriter = null ,
28
+ ? callable $ configureWriter = null ,
29
29
?string $ delimiter = null ,
30
30
?bool $ shouldAddBom = null ,
31
31
): static {
@@ -59,7 +59,7 @@ public static function createWithoutBom(string $file, string $type = ''): static
59
59
public static function streamDownload (
60
60
string $ downloadName ,
61
61
string $ type = '' ,
62
- callable $ writerCallback = null ,
62
+ ? callable $ writerCallback = null ,
63
63
?string $ delimiter = null ,
64
64
?bool $ shouldAddBom = null ,
65
65
): static {
@@ -148,7 +148,7 @@ public function setHeaderStyle(Style $style): static
148
148
return $ this ;
149
149
}
150
150
151
- public function addRow (Row |array $ row , Style $ style = null ): static
151
+ public function addRow (Row |array $ row , ? Style $ style = null ): static
152
152
{
153
153
if (is_array ($ row )) {
154
154
if ($ this ->processHeader && $ this ->processingFirstRow ) {
@@ -166,7 +166,7 @@ public function addRow(Row|array $row, Style $style = null): static
166
166
return $ this ;
167
167
}
168
168
169
- public function addRows (iterable $ rows , Style $ style = null ): static
169
+ public function addRows (iterable $ rows , ? Style $ style = null ): static
170
170
{
171
171
foreach ($ rows as $ row ) {
172
172
$ this ->addRow ($ row , $ style );
0 commit comments