Parcourir la source

Fix PDF generation issue where test value is NULL

Alan Lam il y a 6 ans
Parent
commit
7c42d9d174
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      engine/test_pdf.php

+ 1 - 1
engine/test_pdf.php

@@ -6,7 +6,7 @@ class TestPDF {
 	 * @param string $value
 	 * @return string
 	 */
-	public static function getValueHtml(string $value): string {
+	public static function getValueHtml(?string $value): string {
 		if(empty($value)) {
 			return "<span class=\"text-muted\">N/A</span>";
 		}