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

@ReadOnly annotation incompatible with PHP 8.1 #1331

Closed
mbabker opened this issue Jul 25, 2021 · 1 comment · Fixed by #1333
Closed

@ReadOnly annotation incompatible with PHP 8.1 #1331

mbabker opened this issue Jul 25, 2021 · 1 comment · Fixed by #1333

Comments

@mbabker
Copy link
Contributor

mbabker commented Jul 25, 2021

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

The readonly properties RFC makes readonly a keyword in PHP 8.1. This results in ParseError: syntax error, unexpected token "readonly" errors when parsing annotations thanks to the JMS\Serializer\Annotation\ReadOnly class.

@goetas
Copy link
Collaborator

goetas commented Jul 26, 2021

:(

the only suggestion I have is to rename it into "ReadOnlyProperty"...

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 a pull request may close this issue.

2 participants