Skip to content

Add an option to default arrays to an empty array #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wol-soft opened this issue Feb 3, 2021 · 0 comments · Fixed by #35
Closed

Add an option to default arrays to an empty array #32

wol-soft opened this issue Feb 3, 2021 · 0 comments · Fixed by #35
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@wol-soft
Copy link
Owner

wol-soft commented Feb 3, 2021

Currently arrays which aren't required default to null. This requires additional null checks in PHP code where an empty array fits much better. Consequently an option to default not provided array properties to an empty array may be useful.

@wol-soft wol-soft added the enhancement New feature or request label Feb 3, 2021
wol-soft added a commit that referenced this issue Feb 8, 2021
Refactored type storage of properties to an object for the possibility to explicitly set nullability of a type
Removed generator configuration options from the readme
@wol-soft wol-soft linked a pull request Feb 8, 2021 that will close this issue
@wol-soft wol-soft added this to the 0.20.0 milestone Feb 8, 2021
@wol-soft wol-soft self-assigned this Feb 8, 2021
wol-soft added a commit that referenced this issue Feb 10, 2021
…rray

Added an option to default arrays to empty arrays (#32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant