Show null attributes in response
Partially revert changes fromd1f5c1f674
andfea1093bed
This commit is contained in:
parent
914acccf1d
commit
6d5f9ff9e5
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue