From 75a607fe1f87c944e7b1df44c33d920aa48cd0f5 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Fri, 1 Sep 2023 13:06:12 +0200 Subject: [PATCH] PdfExportHook (phpDoc): Add possible param type hints --- library/Icinga/Application/Hook/PdfexportHook.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/library/Icinga/Application/Hook/PdfexportHook.php b/library/Icinga/Application/Hook/PdfexportHook.php index 36e9f515c..defa0f0fe 100644 --- a/library/Icinga/Application/Hook/PdfexportHook.php +++ b/library/Icinga/Application/Hook/PdfexportHook.php @@ -3,6 +3,8 @@ namespace Icinga\Application\Hook; +use Icinga\Module\Pdfexport\PrintableHtmlDocument; + /** * Base class for the PDF Export Hook */ @@ -18,8 +20,8 @@ abstract class PdfexportHook /** * Render the specified HTML to PDF and stream it to the client * - * @param string $html The HTML to render to PDF - * @param string $filename The filename for the generated PDF + * @param string|PrintableHtmlDocument $html The HTML to render to PDF + * @param string $filename The filename for the generated PDF */ - abstract public function streamPdfFromHtml($html, $filename); + abstract public function streamPdfFromHtml($html, string $filename); }