Skip to content

Commit 1aa3feb

Browse files
committed
test: improved code coverage
1 parent fb4f3e7 commit 1aa3feb

File tree

5 files changed

+696
-950
lines changed

5 files changed

+696
-950
lines changed

phpmyfaq/src/phpMyFAQ/Export/Pdf/Wrapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ class Wrapper extends TCPDF
258258
*/
259259
private string $currentFont = 'dejavusans';
260260

261-
private string $customHeader;
261+
private string $customHeader = '';
262262

263-
private string $customFooter;
263+
private string $customFooter = '';
264264

265265
/**
266266
* Constructor.
@@ -439,7 +439,7 @@ public function Footer(): void // phpcs:ignore
439439
*/
440440
public function setCustomFooter(): void
441441
{
442-
$this->customFooter = $this->config->get('main.customPdfFooter');
442+
$this->customFooter = $this->config->get('main.customPdfFooter') ?? '';
443443
}
444444

445445
/**

0 commit comments

Comments
 (0)