Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:3.4fromGuilhemN:NONSPECIFICTAG
Jun 14, 2017

Conversation

@GuilhemN
Copy link
Contributor

@GuilhemNGuilhemN commentedMay 25, 2017
edited
Loading

QA
Branch?3.4
Bug fix?no
New feature?no
BC breaks?no
Deprecations?yes
Tests pass?yes
Fixed tickets
LicenseMIT
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 (seethe spec).

I applied this change in#22762 to comply with the spec.

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);
Copy link
Member

Choose a reason for hiding this comment

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

3.4

Copy link
ContributorAuthor

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.
Copy link
Member

Choose a reason for hiding this comment

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

3.4

@fabpot
Copy link
Member

Thank you@GuilhemN.

@fabpotfabpot merged commit60f5046 intosymfony:3.4Jun 14, 2017
fabpot added a commit that referenced this pull requestJun 14, 2017
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
@GuilhemNGuilhemN deleted the NONSPECIFICTAG branchJune 15, 2017 04:54
This was referencedOct 18, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

4 participants

@GuilhemN@fabpot@xabbuh@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp