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

Support Disjunctive Normal Form Types (DNF types) for PHP 8.2+ #235

Closed
clue opened this issue Aug 14, 2022 · 0 comments · Fixed by #237
Closed

Support Disjunctive Normal Form Types (DNF types) for PHP 8.2+ #235

clue opened this issue Aug 14, 2022 · 0 comments · Fixed by #237

Comments

@clue
Copy link
Member

clue commented Aug 14, 2022

We should support Disjunctive Normal Form Types (DNF types) for PHP 8.2+ (RFC: https://wiki.php.net/rfc/dnf_types):

$promise->otherwise(function ((A&B)|(C&D) $e) { }); // Promise v2
$promise->catch(function ((A&B)|(C&D) $e) { }); // Promise v3

Input and PRs very much welcome! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant