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

[OptionsResolver] Add note about deprecated options#11704

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
javiereguiluz merged 1 commit intosymfony:4.2fromyceruto:patch-5
Jun 11, 2019

Conversation

@yceruto
Copy link
Member

Missing piece related tosymfony/symfony#28878

@yceruto
Copy link
MemberAuthor

This is the use case for this note:

$resolver->setDefaults(['foo' =>null,'bar' =>function (Options$options) {// needed to keep BC,// and do not use $options['foo'] here, it'll trigger the deprecationreturn$options->offsetGet('foo',false);// does not trigger the deprecation    },]);$resolver->setDeprecated('foo','The "foo" option is deprecated, use "bar" instead.');

@javiereguiluzjaviereguiluz merged commitaaac426 intosymfony:4.2Jun 11, 2019
javiereguiluz added a commit that referenced this pull requestJun 11, 2019
…ruto)This PR was squashed before being merged into the 4.2 branch (closes#11704).Discussion----------[OptionsResolver] Add note about deprecated optionsMissing piece related tosymfony/symfony#28878Commits-------aaac426 [OptionsResolver] Add note about deprecated options
@javiereguiluz
Copy link
Member

Thanks Yonel!

@ycerutoyceruto deleted the patch-5 branchJune 11, 2019 16:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

4 participants

@yceruto@javiereguiluz@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp