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

PHP 8.1: Added support for readonly keyword #3480

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

kukulich
Copy link
Contributor

No description provided.

@kukulich kukulich mentioned this pull request Nov 20, 2021
8 tasks
@kukulich kukulich force-pushed the php81-readonly branch 3 times, most recently from 1753d8e to 2bd65e9 Compare November 20, 2021 10:58
@kukulich kukulich marked this pull request as draft November 20, 2021 10:59
@kukulich kukulich force-pushed the php81-readonly branch 9 times, most recently from a8ec2c9 to 5398ede Compare November 20, 2021 11:51
@kukulich kukulich marked this pull request as ready for review November 20, 2021 11:54
Copy link
Contributor

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

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

Thanks for taking this on @kukulich ! I've left some notes and suggestions in-line.

src/Tokenizers/PHP.php Outdated Show resolved Hide resolved
tests/Core/Tokenizer/ReadonlyTest.inc Show resolved Hide resolved
src/Util/Tokens.php Outdated Show resolved Hide resolved
src/Tokenizers/PHP.php Outdated Show resolved Hide resolved
@kukulich kukulich marked this pull request as draft November 20, 2021 15:03
@kukulich kukulich force-pushed the php81-readonly branch 2 times, most recently from 99f72fa to 857d0b5 Compare November 20, 2021 16:26
@kukulich kukulich marked this pull request as ready for review November 20, 2021 16:30
@kukulich kukulich force-pushed the php81-readonly branch 2 times, most recently from 0401f9d to 197cfa4 Compare November 20, 2021 18:41
@gsherwood gsherwood added this to the 3.7.0 milestone Nov 21, 2021
@gsherwood gsherwood merged commit 21bd369 into squizlabs:master Dec 17, 2021
@gsherwood
Copy link
Member

Thanks a lot for this contribution.

I made a couple of little changes, including adding support for readonly const. While it is a syntax error in 8.1, it still tokenizes as T_READONLY...

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.

3 participants