-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Add Validation::createIsValidCallable() that returns a boolean instead of exception #40240
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
[Validator] Add Validation::createIsValidCallable() that returns a boolean instead of exception #40240
Conversation
61fd825
to
7bd6fcb
Compare
I'm not fond of creation a special case in the option resolver component like this. Maybe we could instead create a new |
I tend to agree with @jvasseur here. That sounds like a better approach |
I agree with @jvasseur too. |
I agree, I'll update the PR later today. |
7bd6fcb
to
73a717e
Compare
PR updated. Thanks @jvasseur for the great suggestion! |
@javiereguiluz I would expect a function named |
@jvasseur you are right! I mixed things up ... as usually happens to me with the validator. Sorry! I deleted the original comment. |
c51a2f3
to
565bc52
Compare
565bc52
to
abdedda
Compare
abdedda
to
e731f5f
Compare
Thank you @wouterj. |
This adds a
Validator::createValidCallable()
(I'm very open for other name suggestions) that returns a boolean instead of exceptions. This allows usingit in places where booleans are expected, for instance in the referenced OptionsResolver case: