Show null attributes in response

Partially revert changes from d1f5c1f674 and fea1093bed
This commit is contained in:
wpetit 2019-09-16 16:41:21 +02:00
parent 914acccf1d
commit 6d5f9ff9e5
1 changed files with 1 additions and 5 deletions

View File

@ -257,16 +257,12 @@ class Dumper
} }
if ($child->isNillable()) { if ($child->isNillable()) {
$element->setAttribute('minOccurs', 0); $element->setAttribute('nillable', 'true');
} else {
$element->setAttribute('minOccurs', 1);
} }
if ($type instanceof ArrayOfType) { if ($type instanceof ArrayOfType) {
$element->setAttribute('minOccurs', 0); $element->setAttribute('minOccurs', 0);
$element->setAttribute('maxOccurs', 'unbounded'); $element->setAttribute('maxOccurs', 'unbounded');
} else {
$element->setAttribute('maxOccurs', 1);
} }
$all->appendChild($element); $all->appendChild($element);