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

Update union types docs to note they are available as of 8.0 #3045

Closed
wants to merge 1 commit into from
Closed

Update union types docs to note they are available as of 8.0 #3045

wants to merge 1 commit into from

Conversation

cookieguru
Copy link
Contributor

No description provided.

@Girgias
Copy link
Member

Girgias commented Dec 29, 2023

The provided change is incorrect, the only thing available as of PHP 8.0 as generalized simple union types.

Nullable union types are available as of 7.1 and DNF types (which are a form of union types) are only available as of 8.2, moreover the changelog is described in more details in https://www.php.net/manual/en/language.types.declarations.php

@Girgias Girgias closed this Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants