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

[Config] Fix using null values with config builders#45789

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

@HypeMC
Copy link
Member

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#45782
LicenseMIT
Doc PR-

The generated config builders will no longer discardnull values.

{
private$priority;
private$color;
private$_usedProperties = [];

Choose a reason for hiding this comment

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

we don't use underscores in property names

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas This is to avoid collision with configuration proprieties (->scalarNode('used_properties')), same as with_extraKeys.

Sorry, I accidentally resolved this.

Choose a reason for hiding this comment

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

Got it, thanks for the explanation.

unset($value['scalar_node']);
}

if (isset($value['scalar_node_with_default'])) {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this usearray_key_exists to allow passingnull ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@HypeMCHypeMCforce-pushed thefix-null-in-config-builder branch frome214761 to1264225CompareMarch 21, 2022 13:42
@nicolas-grekas
Copy link
Member

Thank you@HypeMC.

@nicolas-grekasnicolas-grekas merged commit6afaa8c intosymfony:5.4Mar 22, 2022
@HypeMCHypeMC deleted the fix-null-in-config-builder branchMarch 22, 2022 15:37
This was referencedApr 2, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@HypeMC@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp