-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Attribute] Configuration validation of text and select attributes #8755
Conversation
GSadee
commented
Oct 2, 2017
Q | A |
---|---|
Branch? | 1.0 |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Related tickets | fixes #8671 |
License | MIT |
102a5d2
to
5a8b52b
Compare
* @When I specify its min length as :min | ||
* @When I specify its min entries value as :min | ||
*/ | ||
public function iSpecifyItsMinValueAs(int $min) |
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.
: void
R.I.P [*] 😢
5a8b52b
to
592dfa2
Compare
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.
Let's add finals on constraints and it's good to go! :)
|
||
use Symfony\Component\Validator\Constraint; | ||
|
||
class ValidSelectAttributeConfiguration extends Constraint |
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.
final?
|
||
use Symfony\Component\Validator\Constraint; | ||
|
||
class ValidTextAttributeConfiguration extends Constraint |
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.
final?
592dfa2
to
7745533
Compare
Since that specs have been made final, we should replace creating mocks of them with using these concrete classes in validator specifications. |
7745533
to
87a18ca
Compare
@pamil fixed 👍 |
Thanks @GSadee! 🎉 |