From 6b844d9feb570ffb29fd0986626d623988914b79 Mon Sep 17 00:00:00 2001 From: Liam Morland <liam@openplus.ca> Date: Tue, 17 Oct 2023 18:22:29 -0400 Subject: [PATCH] Issue #3273143: Allow values of zero in XFDF Fixes issue introduced in 8da26ca. --- src/Component/Utility/Xfdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Component/Utility/Xfdf.php b/src/Component/Utility/Xfdf.php index 81bea0d..7797c41 100644 --- a/src/Component/Utility/Xfdf.php +++ b/src/Component/Utility/Xfdf.php @@ -37,7 +37,7 @@ class Xfdf { $field_ele->setAttribute('name', $name); $value_ele = $field_ele->appendChild($doc->createElement('value')); - $value_ele->appendChild($doc->createTextNode($value ?: '')); + $value_ele->appendChild($doc->createTextNode((string) $value)); } $ids_ele = $xfdf_ele->appendChild($doc->createElement('ids')); -- GitLab