-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Feature/variadic intersection type #185
Feature/variadic intersection type #185
Conversation
…, right_type -> second
[Type] add support for variadic union types (azjezz#184)
Pull Request Test Coverage Report for Build 793953391
💛 - Coveralls |
could you please add a unit test to create an intersection with more than 2 types? ( to keep code coverage the same ) |
Yep, I'll do it |
Type\intersection( | ||
Type\object(IndexAccessInterface::class), | ||
Type\object(CollectionInterface::class), | ||
Type\object(Iterator::class), | ||
Type\shape(['id' => Type\string()]), | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically an impossible type, but okay :p
Thank you @zour228 ! |
Union variadic types issue #183 and PR #184