Skip to content
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

[BUGFIX] Add UnionTypes for method arguments #676

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

warki
Copy link
Contributor

@warki warki commented Dec 20, 2023

Currently the extension builder fails to save an extension, if a methods argument type is a union type.

After merging this patch, Union Types are allowed. For simple types like null, int, float, bool, string, array, callable, object and mixed no backslash will be prefixed to the type.

This needs to be tested, if I miss any simple types in the list. Otherwise a backslash will be prefixed unnecessary and the PHP-Code will likely fail.

@github-actions github-actions bot added the bug Something isn't working label Dec 20, 2023
@PKuhlmay
Copy link
Collaborator

Thank you very much. I will have a look at it.

@PKuhlmay PKuhlmay force-pushed the master branch 2 times, most recently from 135b509 to 62c8064 Compare August 9, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants