瀏覽代碼

Fix PDF generation issue where test value is NULL

Alan Lam 6 年之前
父節點
當前提交
7c42d9d174
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  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>";
 		}