From fad5e20ac7ff0f4e5f5b09207dc5a5a4c213eb74 Mon Sep 17 00:00:00 2001 From: Munir Khakhi Date: Wed, 24 Jun 2020 18:22:31 +0530 Subject: [PATCH] Fixed xml bool value assignment --- src/ApiBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiBuilder.php b/src/ApiBuilder.php index 698fdbc..c08484f 100644 --- a/src/ApiBuilder.php +++ b/src/ApiBuilder.php @@ -596,7 +596,7 @@ protected function processXmlMappings($arguments, $api): string } elseif ($this->checkBool(array_get($arguments[0], $value))) { // Check boolean if (!empty(array_get($arguments[0], $value))) { - $xml = str_ireplace('"{' . $key . '}"', array_get($arguments[0], $value), $xml); + $xml = str_ireplace('{' . $key . '}', array_get($arguments[0], $value), $xml); } else { $xml = str_ireplace('<' . $key . '>{' . $key . '}', '', $xml); }