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] do not trigger deprecations for valid YAML#20855

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

Conversation

@xabbuh
Copy link
Member

QA
Branch?3.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#19874
LicenseMIT
Doc PR

if (!isset($mapping[$i +1]) ||'' !==$mapping[$i +1]) {
@trigger_error('Omitting the space after the colon that follows a mapping key definition is deprecated since version 3.2 and will throw a ParseException in 4.0.',E_USER_DEPRECATED);
if (!isset($mapping[$i +1]) ||!in_array($mapping[$i +1],array('','[',']','{','}'),true)) {
@trigger_error('Using a colon that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}" is deprecated since version 3.2 and will throw a ParseException in 4.0.',E_USER_DEPRECATED);
Copy link
Contributor

Choose a reason for hiding this comment

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

will be considered as part of the value in 4.0?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

That would be misleading as the current outcome is depending on the actual YAML input. You may get an exception, but the colon might also be treated as part of the mapping key.

GuilhemN reacted with thumbs up emoji
@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commit1436349 intosymfony:3.2Dec 13, 2016
fabpot added a commit that referenced this pull requestDec 13, 2016
This PR was merged into the 3.2 branch.Discussion----------[Yaml] do not trigger deprecations for valid YAML| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#19874| License       | MIT| Doc PR        |Commits-------1436349 do not trigger deprecations for valid YAML
@xabbuhxabbuh deleted the issue-19874-deprecation-refinement branchDecember 13, 2016 08:39
@fabpotfabpot mentioned this pull requestDec 13, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

2 more reviewers

@GuilhemNGuilhemNGuilhemN left review comments

@SimperfitSimperfitSimperfit approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

5 participants

@xabbuh@fabpot@Simperfit@GuilhemN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp