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] remove deprecated features#22770

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?master
Bug fix?no
New feature?no
BC breaks?yes
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

@xabbuhxabbuhforce-pushed theremove-deprecated-yaml-features branch 2 times, most recently frome6c9a2d to6f4ad01CompareMay 19, 2017 08:35
@nicolas-grekasnicolas-grekas added this to the4.0 milestoneMay 19, 2017
@xabbuhxabbuhforce-pushed theremove-deprecated-yaml-features branch 3 times, most recently from38d9b3d to020178bCompareMay 21, 2017 11:06
@xabbuhxabbuhforce-pushed theremove-deprecated-yaml-features branch from020178b to5d584deCompareMay 21, 2017 12:03
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@GuilhemNGuilhemN left a comment

Choose a reason for hiding this comment

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

👍

if (!(Yaml::PARSE_KEYS_AS_STRINGS & $flags)) {
$evaluatedKey = self::evaluateScalar($key, $flags, $references);

if ('' !== $key && $evaluatedKey !== $key && !is_string($evaluatedKey)) {
@trigger_error('Implicit casting of incompatible mapping keys to strings is deprecated since version 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Pass the PARSE_KEYS_AS_STRING flag to explicitly enable the type casts.', E_USER_DEPRECATED);
throw new ParseException('Non-string mapping keys are not supported. Pass the Yaml::PARSE_KEYS_AS_STRINGS flag to cast them to strings.', self::$parsedLineNumber + 1, $mapping);
}
}

if (':' !== $key && (!isset($mapping[$i + 1]) || !in_array($mapping[$i + 1], array(' ', ',', '[', ']', '{', '}'), true))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

':' !== $key should be removed, right?

xabbuh reacted with thumbs up emoji
@@ -481,24 +427,20 @@ private static function parseMapping($mapping, $flags, &$i = 0, $references = ar
// key
$key = self::parseScalar($mapping, $flags, array(':', ' '), $i, false, array(), true);
Copy link
Contributor

@GuilhemNGuilhemNMay 24, 2017
edited
Loading

Choose a reason for hiding this comment

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

The last argument should be removed, isn't it? (and the according logic in parseScalar)

xabbuh reacted with thumbs up emoji
@xabbuhxabbuhforce-pushed theremove-deprecated-yaml-features branch from5d584de toefe2337CompareMay 24, 2017 11:52
@fabpot
Copy link
Member

Thank you@xabbuh.

@fabpotfabpot merged commitefe2337 intosymfony:masterMay 24, 2017
fabpot added a commit that referenced this pull requestMay 24, 2017
This PR was merged into the 4.0-dev branch.Discussion----------[Yaml] remove deprecated features| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | no| BC breaks?    | yes| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------efe2337 [Yaml] remove deprecated features
@xabbuhxabbuh deleted the remove-deprecated-yaml-features branchMay 24, 2017 15:15
@fabpotfabpot mentioned this pull requestOct 19, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@GuilhemNGuilhemNGuilhemN approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
4.0
Development

Successfully merging this pull request may close these issues.

5 participants
@xabbuh@fabpot@nicolas-grekas@GuilhemN@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp