Remove obsolete arguments

This commit is contained in:
Adrien Crivelli 2020-05-16 20:25:01 +09:00
parent fcf7820467
commit e34535329d
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
4 changed files with 4 additions and 6 deletions

View File

@ -267,10 +267,8 @@ abstract class Pdf extends Html
/** /**
* Save PhpSpreadsheet to PDF file, post-save. * Save PhpSpreadsheet to PDF file, post-save.
*
* @param resource $fileHandle
*/ */
protected function restoreStateAfterSave($fileHandle) protected function restoreStateAfterSave(): void
{ {
$this->maybeCloseFileHandle(); $this->maybeCloseFileHandle();

View File

@ -73,6 +73,6 @@ class Dompdf extends Pdf
// Write to file // Write to file
fwrite($fileHandle, $pdf->output()); fwrite($fileHandle, $pdf->output());
parent::restoreStateAfterSave($fileHandle); parent::restoreStateAfterSave();
} }
} }

View File

@ -95,7 +95,7 @@ class Mpdf extends Pdf
// Write to file // Write to file
fwrite($fileHandle, $pdf->Output('', 'S')); fwrite($fileHandle, $pdf->Output('', 'S'));
parent::restoreStateAfterSave($fileHandle); parent::restoreStateAfterSave();
} }
/** /**

View File

@ -93,6 +93,6 @@ class Tcpdf extends Pdf
// Write to file // Write to file
fwrite($fileHandle, $pdf->output($pFilename, 'S')); fwrite($fileHandle, $pdf->output($pFilename, 'S'));
parent::restoreStateAfterSave($fileHandle); parent::restoreStateAfterSave();
} }
} }