Show null attributes in response
Partially revert changes from d1f5c1f6740121751754644c1123d97717fe5035 and fea1093bed108392caf4388b191d7c902a43838a
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…
x
Reference in New Issue
Block a user