This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
PHP 8.0 #395
Copy link
Copy link
Closed
Labels
Description
Bellow you will find list of new features added in PHP 8.0, which are affecting syntax.
I'll be creating PR's, but feel free to jump in and add features. If you want to help, but you have problems with TM grammar or test specs or anything, just let me know in this issue.
🏃 - Work in progress
🐌 - Planned (some work started)
✋ - On hold (possible changes)
⏳ - PR waiting for review & merge
✔️ - PR merged
-
PRs
- Non-capturing catches and multiple namespaced exceptions #396 ✔️
- Update type hints #398 ✔️
- https://wiki.php.net/rfc/mixed_type_v2
- https://wiki.php.net/rfc/trailing_comma_in_parameter_list
- https://wiki.php.net/rfc/static_return_type
- https://wiki.php.net/rfc/union_types_v2
- https://wiki.php.net/rfc/constructor_promotion
- https://wiki.php.net/rfc/trailing_comma_in_closure_use_list
- Fix multiline ternary, add named arguments #399 ✔️
- Nullsafe operator #404 ✔️
- Attributes #405 ✔️
- Attributes (final syntax
#[Attribute])- https://wiki.php.net/rfc/attributes_v2
- https://wiki.php.net/rfc/attribute_amendments
- https://wiki.php.net/rfc/shorter_attribute_syntax
- https://wiki.php.net/rfc/shorter_attribute_syntax_change
- Attributes (final syntax
- match statement #407 ✔️
-
Other
- Update names of constants, functions, classes 🐌
Migration guide for PHP 8.0 is available here: https://github.com/php/php-src/blob/PHP-8.0/UPGRADING