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

feat: Support union and intersection return types - Formatting\ReturnTypeSniff #183

Conversation

michalbundyra
Copy link
Member

@michalbundyra michalbundyra commented Mar 6, 2023

Allow the following Return types:

function union(): bool|string;

function intersection(): Iterator&Countable;

function nullType(): null;

function boolFalse(): false;

function boolTrue(): true;

function unionAndIntersection(): string|(Iterator&Countable);

@michalbundyra michalbundyra added the enhancement New feature or request label Mar 6, 2023
@michalbundyra michalbundyra added this to the 1.3.0 milestone Mar 6, 2023
@michalbundyra michalbundyra merged commit 0755e02 into webimpress:master Mar 6, 2023
@michalbundyra michalbundyra deleted the feat/return-type-union-intersection branch March 6, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant