You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently no support for DNF types in either Promise v2 or Promise v3. Support should be added by adding this feature to either version (preferable Promise v3) and then cherry-picking to the other version.
Legacy Promise v1 is not affected as it does not have an otherwise() or catch() method that checks exception types.
DNF types will be supported in PHP 8.2+ only which is scheduled to be released in November.
We should support Disjunctive Normal Form Types (DNF types) for PHP 8.2+ (RFC: https://wiki.php.net/rfc/dnf_types):
ReflectionType::getClass()
(PHP 8+ / Promise v2) #198 (Promise v2) and Support union types and address deprecation ofReflectionType::getClass()
(PHP 8+) #197 (Promise v3)catch()
method exists for Promise v3 only, theotherwise()
method has been deprecated for Promise v3 via Addcatch()
andfinally()
, deprecateotherwise()
andalways()
#208otherwise()
orcatch()
method that checks exception types.Input and PRs very much welcome! 👍
The text was updated successfully, but these errors were encountered: