Remove obsolete arguments
This commit is contained in:
parent
fcf7820467
commit
e34535329d
|
@ -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();
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue