Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the max occurs override logic for sequences:
This actually means the element can have a maximum occurence of 15 instead of the returned 5 for el1.
It even becomes more complex if you add additional elements to the sequence:
Now the availability (or not) of el2 has in impact on the maximum amount of el1's that can be set:
Since it obeys the order of elements:
It becomes even more complex once nexted choices get introduced:
(this was not supported yet, but got introduced in this PR as well)
Now both the sequence count, choice count and element occurence count have an impact on the maximum amount of elements.
Since this is all becoming way too complex and unreliable, I suggest to set the maximum occurences to
-1
instead (which means you can have many elements).For code generation, this should result in an
array
anyways.More context:
phpro/soap-client#540