Explorar el Código

Fix PDF generation issue where test value is NULL

Alan Lam hace 6 años
padre
commit
7c42d9d174
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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>";
 		}