Skip to content

[Proposal]: IntersectionType #1683

@norberttech

Description

@norberttech

Note

This is how example proposal might look like. Before opening a pull request, contributor should send a proposal like this one and wait for the maintainers to provide him a Definition of Done.

Describe the Proposal

In addition to all other types we should also have an intersection type, which would be almost the same as union type:

intersection<ineger&positive-integer>

API Adjustments

function type_union(Type $first, Type $second, Type ...$types) : UnionType

Are you intenting to also work on proposed change?

It's perfectly fine to just propose changes and wait for others to pick them up.

Yes

Are you interested in sponsoring this change? If you can't find time to work on given proposal but it's

time sensitive, it might be a good idea to consider sponsoring this change. Please find more details at https://flow-php.com/sponsor/

None

Integration & Dependencies

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions