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] Deprecate ArrayNodeDefinition::ignoreExtraKeys in favor of s etIgnoreExtraKeys and setRemoveExtraKeys#47284

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

Open
alamirault wants to merge1 commit intosymfony:7.4
base:7.4
Choose a base branch
Loading
fromalamirault:feature/33590-deprecate-array-node-definition-ignore-extra-keys

Conversation

alamirault
Copy link
Contributor

@alamiraultalamirault commentedAug 15, 2022
edited by OskarStark
Loading

QA
Branch?6.2
Bug fix?no
New feature?yes
Deprecations?yes
TicketsFix#33590
LicenseMIT
Doc PRsymfony/symfony-docs#...

ArrayNodeDefinition::ignoreExtraKeys($bool) is ambiguous, it controlArrayNode::ignoreExtraKeys andArrayNode::removeExtraKeys at the same time.

Introduce unambiguous methods and deprecateignoreExtraKeys

(It's seems better than create human helper constant)

(Unrelated fabbot failure)

tomasfejfar, MiroCillik, and odinuv reacted with heart emoji
@carsonbotcarsonbot added this to the6.2 milestoneAug 15, 2022
@OskarStarkOskarStark changed the title[Config] Deprecate ArrayNodeDefinition::ignoreExtraKeys in favor of s…[Config] Deprecate ArrayNodeDefinition::ignoreExtraKeys in favor of s etIgnoreExtraKeys and setRemoveExtraKeysAug 19, 2022
@alamiraultalamiraultforce-pushed thefeature/33590-deprecate-array-node-definition-ignore-extra-keys branch from770f209 to446ced9CompareOctober 29, 2022 14:07
@alamirault
Copy link
ContributorAuthor

@carsonbot find me a reviewer please

@carsonbot
Copy link

I'm sorry. I could not find any suitable reviewer.

@nicolas-grekasnicolas-grekas modified the milestones:6.2,6.3Nov 5, 2022
@alamiraultalamiraultforce-pushed thefeature/33590-deprecate-array-node-definition-ignore-extra-keys branch from446ced9 toff56741CompareMarch 10, 2023 18:44
@alamirault
Copy link
ContributorAuthor

I rebased branch on 6.3, I'm looking for reviewers 😄

@nicolas-grekasnicolas-grekas modified the milestones:6.3,6.4May 23, 2023
@javiereguiluz
Copy link
Member

I like this proposal ... but the new method names look a bit odd compared to the rest of methods:

setIgnoreExtraKeys()setRemoveExtraKeys()

Maybe we could use these names instead:

ignoreExtraKeys()removeExtraKeys()

This is a bit more complicated because we need to handle differently the deprecation of the current behavior ofignoreExtraKeys(), but it may be worth it.

@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Nov 15, 2023
@xabbuhxabbuh modified the milestones:7.1,7.2May 15, 2024
@fabpotfabpot modified the milestones:7.2,7.3Nov 20, 2024
@fabpotfabpot modified the milestones:7.3,7.4May 26, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
7.4
Development

Successfully merging this pull request may close these issues.

[Config] ignoreExtraKeys(false) is misleading
6 participants
@alamirault@carsonbot@javiereguiluz@fabpot@nicolas-grekas@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp