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

minor: PHP8.3 - Typed class constants - handle nullable by transformer #7009

Conversation

SpacePossum
Copy link
Contributor

@SpacePossum SpacePossum commented May 29, 2023

PHP8.3 introduces typed classy constants:
https://wiki.php.net/rfc/typed_class_constants

To support/handling these in the code I propose to change the nullable ? native token into same custom token CT::T_NULLABLE_TYPE as is done for the other nullable-typehints currently

part of #6999

@SpacePossum SpacePossum force-pushed the main/feature_php83_typed_consts_transformer_fix branch from 8a5e732 to 094662d Compare May 29, 2023 21:46
Copy link
Member

@Wirone Wirone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kubawerlos please look at it too 🙂.

@Wirone Wirone requested a review from kubawerlos May 29, 2023 23:23
@kubawerlos kubawerlos merged commit 7441133 into PHP-CS-Fixer:master Jun 8, 2023
14 checks passed
@kubawerlos
Copy link
Contributor

Thank you @SpacePossum 👍🏼

@SpacePossum SpacePossum deleted the main/feature_php83_typed_consts_transformer_fix branch June 13, 2023 05:55
niklam pushed a commit to niklam/PHP-CS-Fixer that referenced this pull request Jun 19, 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.

None yet

3 participants