-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Document typed arrays in optionsresolver #6048
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
} | ||
} | ||
|
||
Because the OptionsResolver will validate typed arrays recurively, it is possible to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- recurively
+ recursively
public function configureOptions(OptionsResolver $resolver) | ||
{ | ||
// ... | ||
//allowed type is a 2D array of string values |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would add a space between //
and allowed
Hi @EVODelavega! Congratz on your feature! As you submitted this doc PR 2 years ago, I've finished it for you in #8946 . I've kept your commit, so that you'll still get the credits you deserve. Thanks for starting this PR and creatign this great feature! |
…VODelavega, wouterj) This PR was merged into the 3.4 branch. Discussion ---------- [OptionsResolver] Documented validation of array types This continues #6048 . The feature was finally merged into symfony 3.4 (congratz @EVODelavega!), so let's document it! Related Symfony PR: symfony/symfony#17032 Commits ------- cb12592 Merged new example in older example, removing some text 318e199 Fix typo bf5d9d3 Document typed arrays in optionsresolver
Documentation for changes introduced by Symfony PR 17032