Avoid null values for XML elements

This commit is contained in:
Sebastian Meyer 2024-05-08 15:39:09 +02:00
parent beeef31d91
commit c4a5a09205
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class Response {
* @param string $nodeName The name of appending node.
* @param string $value The content of appending node.
*/
public function addToVerbNode($nodeName, $value = null) {
public function addToVerbNode($nodeName, $value = '') {
if (!isset($this->verbNode) && !empty($this->verb)) {
$this->verbNode = $this->addChild($this->doc->documentElement, $this->verb);
}