-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
update php/object tag syntax #16952
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
update php/object tag syntax #16952
Conversation
the old syntax (double exclamation mark) is to represent native YAML types, a single exclamation mark represent a local tag. an E_USER_DEPRECATED error is triggered for old tags. fixes #16877
|
Actually, I would consider this a bugfix which means that the changes here (except for the deprecation trigger) should be done in 2.3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a comment saying the fallthrough is intended
|
I agree with @xabbuh that we should consider the proper syntax as a bugfix. The deprecation should then be added in master only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing silencing (which makes the testsuite fail btw)
update assertions
|
Oh well, there's a difference in running the Yaml suite and running the full suite... |
|
@koenpunt Can you only add the deprecation here and create a new pull request for the bugfix based on the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version this will be deprecated in is 3.1 (not 3.0).
|
👌 |
[Yaml] deprecate old php/object syntax
the old syntax (double exclamation mark) is to represent native YAML
types, a single exclamation mark represent a local tag.
an E_USER_DEPRECATED error is triggered for old tags.