Skip to content

Conversation

@TysonAndre
Copy link
Contributor

Pure intersection types were approved and merged into 8.1
https://wiki.php.net/rfc/pure-intersection-types

Note that this is permissive - php itself does not allow union types and
intersection types to be combined right now.

Fixes #354

Fixes parsing of references and bitwise & in php 8.1

Pure intersection types were approved and merged into 8.1
https://wiki.php.net/rfc/pure-intersection-types

Note that this is permissive - php itself does not allow union types and
intersection types to be combined right now.

Fixes microsoft#354

Fixes parsing of references and bitwise `&` in php 8.1
@TysonAndre
Copy link
Contributor Author

@roblourens it would be nice to release this since & (references, bitwise operation) breaks without it - & has two new token types in php 8.1

@TysonAndre TysonAndre force-pushed the intersection-type-support branch 2 times, most recently from d0c9f57 to 9067f71 Compare July 9, 2021 14:08
@TysonAndre
Copy link
Contributor Author

@roblourens thoughts?

@roblourens roblourens merged commit 03f8cab into microsoft:main Jul 16, 2021
@TysonAndre TysonAndre deleted the intersection-type-support branch August 19, 2022 12:29
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.

Support php 8.1 intersection types, new token constants

2 participants