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()) {
|
||||
$element->setAttribute('minOccurs', 0);
|
||||
} else {
|
||||
$element->setAttribute('minOccurs', 1);
|
||||
$element->setAttribute('nillable', 'true');
|
||||
}
|
||||
|
||||
if ($type instanceof ArrayOfType) {
|
||||
$element->setAttribute('minOccurs', 0);
|
||||
$element->setAttribute('maxOccurs', 'unbounded');
|
||||
} else {
|
||||
$element->setAttribute('maxOccurs', 1);
|
||||
}
|
||||
|
||||
$all->appendChild($element);
|
||||
|
Loading…
Reference in New Issue
Block a user