Skip to content

Commit cfe57fc

Browse files
committed
Clarify that streamPdfFromHtml never returns
This commit also includes phpdoc formating changes
1 parent 0688c2a commit cfe57fc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

library/Icinga/Application/Hook/PdfexportHook.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Icinga\Application\Hook;
99
use Icinga\Application\Logger;
10+
use ipl\Html\ValidHtml;
1011
use RuntimeException;
1112
use Throwable;
1213

@@ -44,15 +45,17 @@ public static function first()
4445
/**
4546
* Get whether PDF export is supported
4647
*
47-
* @return bool
48+
* @return bool
4849
*/
4950
abstract public function isSupported();
5051

5152
/**
5253
* Render the specified HTML to PDF and stream it to the client
5354
*
54-
* @param string $html The HTML to render to PDF
55-
* @param string $filename The filename for the generated PDF
55+
* @param ValidHtml $html The HTML to render to PDF
56+
* @param string $filename The filename for the generated PDF
57+
*
58+
* @return never
5659
*/
5760
abstract public function streamPdfFromHtml($html, $filename);
5861

0 commit comments

Comments
 (0)