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] Update nested options examples to usesetOptions instead ofsetDefault#20719

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

yceruto
Copy link
Member


Defining nested option via :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setDefault`
was deprecated since Symfony 7.3, use the :method:`Symfony\\Component\\OptionsResolver\\OptionsResolver::setOptions`
instead. Allowing to define default values for prototyped options.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I'm not sure about this deprecation block. Is it needed in this case, or would the replacement + versionadded note be enough?

Choose a reason for hiding this comment

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

Yes, sometimes it's difficult to decide if we should add such a block. At the end, I left it so anyone searching for "setDefault" can still find this page. Thanks!

yceruto reacted with thumbs up emoji
@javiereguiluzjaviereguiluz merged commit1da928a intosymfony:7.3Mar 19, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Yonel, thanks for this nice contribution!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

[Form] Add support for displaying nested options inDebugCommand
3 participants
@yceruto@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp