Skip to content

Conversation

yceruto
Copy link
Member

@yceruto yceruto commented Mar 4, 2025


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
Member Author

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?

Copy link
Member

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!

@javiereguiluz javiereguiluz merged commit 1da928a into symfony:7.3 Mar 19, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Yonel, thanks for this nice contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Form] Add support for displaying nested options in DebugCommand
3 participants