Skip to content

Conversation

mdoelker
Copy link
Contributor

Hey there,

this PR moves the hardcoded naming logic of union types constructed from compound PHP types from the UnionType class to NamingStrategy.

I have chosen to pass in the type names that the union consist of as input. If you feel it makes more sense to inject the underlying type objects, let me know.

@oojacoboo
Copy link
Collaborator

@mdoelker thanks for the PR! I think it makes sense to stick with the array of names, as you have it. It follows the pattern used already in the NamingStrategy. This all looks good to me.

@oojacoboo oojacoboo merged commit 4fdca6e into thecodingmachine:master Nov 30, 2022
@mdoelker mdoelker deleted the union-type-naming branch December 15, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants