Skip to content

Commit

Permalink
Fixed xml bool value assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
munir131 committed Jun 24, 2020
1 parent 89163b6 commit fad5e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . '}</' . $key . '>', '', $xml);
}
Expand Down

0 comments on commit fad5e20

Please sign in to comment.