Skip to content

Commit 10240e5

Browse files
authored
#280: workaround wrong order of optional/nullable parameters (#294)
* #280: workaround wrong order of optional/nullable parameters * tests: regen files used for tests
1 parent 036cc4d commit 10240e5

4 files changed

Lines changed: 289 additions & 288 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ bin
77
tests/resources/generated
88
coverage
99
.phpunit.result.cache
10+
box.phar

src/Model/Struct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ protected function putRequiredAttributesFirst(StructAttributeContainer $allAttri
410410
}
411411

412412
array_walk($requiredAttributes, [$attributes, 'add']);
413-
array_walk($notRequiredAttributes, [$attributes, 'add']);
414413
array_walk($nullableNotRequiredAttributes, [$attributes, 'add']);
414+
array_walk($notRequiredAttributes, [$attributes, 'add']);
415415

416416
unset($requiredAttributes, $notRequiredAttributes, $nullableNotRequiredAttributes);
417417

0 commit comments

Comments
 (0)