From 6bba55420cfd43223e19d46bd8a0707b418f4287 Mon Sep 17 00:00:00 2001 From: ppp0 Date: Mon, 15 Jan 2024 11:37:47 +0100 Subject: [PATCH] Avoid calling `str_replace` with `null` --- src/GatewayRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GatewayRequest.php b/src/GatewayRequest.php index f90bef5..defe50b 100644 --- a/src/GatewayRequest.php +++ b/src/GatewayRequest.php @@ -74,7 +74,7 @@ function ToXMLString() // foreach ($this->params as $key => $value) { $xmlString .= "<" . $key . ">";// Add opening of element - $xmlString .= $this->TranslateXML($value); + $xmlString .= is_null($value) ? '' : $this->TranslateXML($value); $xmlString .= "";// Add closing of element }