Skip to content

[BUGFIX] Add UnionTypes for method arguments#676

Closed
warki wants to merge 5 commits intoFriendsOfTYPO3:masterfrom
warki:patch-union-types
Closed

[BUGFIX] Add UnionTypes for method arguments#676
warki wants to merge 5 commits intoFriendsOfTYPO3:masterfrom
warki:patch-union-types

Conversation

@warki
Copy link
Copy Markdown
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
Copy Markdown
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
@PKuhlmay PKuhlmay deleted the branch FriendsOfTYPO3:master April 2, 2026 14:01
@PKuhlmay PKuhlmay closed this Apr 2, 2026
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