Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Yaml] support YAML 1.2 octal notation, deprecate YAML 1.1 one#34813
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
should we also add support for parsing YAML 1.2 octal notation with0o
?
Uh oh!
There was an error while loading.Please reload this page.
@trigger_error(sprintf('Support for parsing the invalid octal number %s is deprecated since Symfony 5.1.', $scalar), E_USER_DEPRECATED); | ||
} | ||
return '0' == $scalar[1] ? -octdec($octal) : (($raw === (string) $cast) ? $cast : $raw); |
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.
should be a string comparison
Uh oh!
There was an error while loading.Please reload this page.
@xabbuh Friendly ping |
d3dfffb
to671f0ca
CompareThank you@xabbuh. |
Uh oh!
There was an error while loading.Please reload this page.