@@ -79,7 +79,7 @@ public function __construct(
7979 /**
8080 * {@inheritdoc}
8181 */
82- public function download ($ export , string $ fileName , string $ writerType = null , array $ headers = [])
82+ public function download ($ export , string $ fileName , ? string $ writerType = null , array $ headers = [])
8383 {
8484 // Clear output buffer to prevent stuff being prepended to the Excel output.
8585 if (ob_get_length () > 0 ) {
@@ -99,7 +99,7 @@ public function download($export, string $fileName, string $writerType = null, a
9999 *
100100 * @param string|null $disk Fallback for usage with named properties
101101 */
102- public function store ($ export , string $ filePath , string $ diskName = null , string $ writerType = null , $ diskOptions = [], string $ disk = null )
102+ public function store ($ export , string $ filePath , ? string $ diskName = null , ? string $ writerType = null , $ diskOptions = [], ? string $ disk = null )
103103 {
104104 if ($ export instanceof ShouldQueue) {
105105 return $ this ->queue ($ export , $ filePath , $ diskName ?: $ disk , $ writerType , $ diskOptions );
@@ -120,7 +120,7 @@ public function store($export, string $filePath, string $diskName = null, string
120120 /**
121121 * {@inheritdoc}
122122 */
123- public function queue ($ export , string $ filePath , string $ disk = null , string $ writerType = null , $ diskOptions = [])
123+ public function queue ($ export , string $ filePath , ? string $ disk = null , ? string $ writerType = null , $ diskOptions = [])
124124 {
125125 $ writerType = FileTypeDetector::detectStrict ($ filePath , $ writerType );
126126
@@ -149,7 +149,7 @@ public function raw($export, string $writerType)
149149 /**
150150 * {@inheritdoc}
151151 */
152- public function import ($ import , $ filePath , string $ disk = null , string $ readerType = null )
152+ public function import ($ import , $ filePath , ? string $ disk = null , ? string $ readerType = null )
153153 {
154154 $ readerType = FileTypeDetector::detect ($ filePath , $ readerType );
155155 $ response = $ this ->reader ->read ($ import , $ filePath , $ readerType , $ disk );
@@ -164,7 +164,7 @@ public function import($import, $filePath, string $disk = null, string $readerTy
164164 /**
165165 * {@inheritdoc}
166166 */
167- public function toArray ($ import , $ filePath , string $ disk = null , string $ readerType = null ): array
167+ public function toArray ($ import , $ filePath , ? string $ disk = null , ? string $ readerType = null ): array
168168 {
169169 $ readerType = FileTypeDetector::detect ($ filePath , $ readerType );
170170
@@ -174,7 +174,7 @@ public function toArray($import, $filePath, string $disk = null, string $readerT
174174 /**
175175 * {@inheritdoc}
176176 */
177- public function toCollection ($ import , $ filePath , string $ disk = null , string $ readerType = null ): Collection
177+ public function toCollection ($ import , $ filePath , ? string $ disk = null , ? string $ readerType = null ): Collection
178178 {
179179 $ readerType = FileTypeDetector::detect ($ filePath , $ readerType );
180180
@@ -184,7 +184,7 @@ public function toCollection($import, $filePath, string $disk = null, string $re
184184 /**
185185 * {@inheritdoc}
186186 */
187- public function queueImport (ShouldQueue $ import , $ filePath , string $ disk = null , string $ readerType = null )
187+ public function queueImport (ShouldQueue $ import , $ filePath , ? string $ disk = null , ? string $ readerType = null )
188188 {
189189 return $ this ->import ($ import , $ filePath , $ disk , $ readerType );
190190 }
@@ -197,7 +197,7 @@ public function queueImport(ShouldQueue $import, $filePath, string $disk = null,
197197 *
198198 * @throws \PhpOffice\PhpSpreadsheet\Exception
199199 */
200- protected function export ($ export , string $ fileName , string $ writerType = null ): TemporaryFile
200+ protected function export ($ export , string $ fileName , ? string $ writerType = null ): TemporaryFile
201201 {
202202 $ writerType = FileTypeDetector::detectStrict ($ fileName , $ writerType );
203203
0 commit comments