Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Yaml] Deprecate using the non-specific tag#22909
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
| case0 ===strpos($scalar,'!str'): | ||
| return (string)substr($scalar,5); | ||
| case0 ===strpos($scalar,'!'): | ||
| @trigger_error('Using the non-specific tag "!" is deprecated since version 3.3 as its behavior will change in 4.0. It will force non-evaluating your values in 4.0. Use plain integers or !!float instead.',E_USER_DEPRECATED); |
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.
3.4
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.
indeed, thanks!
| --- | ||
| test:Explicit typing | ||
| deprecated:Using the non-specific tag "!" is deprecated since version 3.3 as its behavior will change in 4.0. |
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.
3.4
fabpot commentedJun 14, 2017
Thank you@GuilhemN. |
This PR was merged into the 3.4 branch.Discussion----------[Yaml] Deprecate using the non-specific tag| Q | A| ------------- | ---| Branch? | 3.4| Bug fix? | no| New feature? | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks? | no| Deprecations? | yes| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Values tagged with the non-specific tag must not be transformed in an integer, this tag means that they must not be evaluated (see [the spec](http://www.yaml.org/spec/1.2/spec.html#tag/non-specific/)).I applied this change in#22762 to comply with the spec.Commits-------60f5046 [Yaml] Deprecate using the non-specific tag
Uh oh!
There was an error while loading.Please reload this page.
Values tagged with the non-specific tag must not be transformed in an integer, this tag means that they must not be evaluated (seethe spec).
I applied this change in#22762 to comply with the spec.