-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Form] Refactor guessing of form options and added min and max guessing #9759
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
Changes from 1 commit
9ca9214
82caf37
6ca2210
8b084f0
53b03a0
5633dd7
cd2661d
36f89a8
30cbb88
2236bb7
3174f87
2f48c3b
a194e47
17ba7b7
e85639a
014f3e1
5a24888
14a4bd7
5b804c3
0c94ac2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…form types supported attributes
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,13 +27,13 @@ interface FormTypeGuesserInterface | |
public function guessType($class, $property); | ||
|
||
/** | ||
* Returns an array of guessed options | ||
* Returns an array of guessed attributes | ||
* | ||
* @param string $class The fully qualified class name | ||
* @param string $property The name of the property to guess for | ||
* @param ResolvedFormTypeInterface $type Field's type | ||
* | ||
* @return array An array of guesses for the field's option | ||
* @return array An array of guesses for the field's attributes | ||
*/ | ||
public function guessOptions($class, $property, ResolvedFormTypeInterface $type); | ||
public function guessAttributes($class, $property); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removal of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I know. What do you suggest? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. afaik, it's not a BC break as it doesn't fail when you have an extra method in the interface (as long as you keep the 2 methods in the core classes as a BC layer). The BC break is adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC old methods must be still in interface, but with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that ok or should I remove the new method too? |
||
} |
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.
Guess\ValueGuess[]