File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -381,15 +381,15 @@ returns ``true`` for acceptable values and ``false`` for invalid values::
381381.. tip ::
382382
383383 You can even use the :doc: `Validator </validation >` component to validate the
384- input by using the :method: `Symfony\\ Component\\ Validator\\ Validation::createValidCallable `
384+ input by using the :method: `Symfony\\ Component\\ Validator\\ Validation::createIsValidCallable `
385385 method::
386386
387387 use Symfony\Component\OptionsResolver\OptionsResolver;
388388 use Symfony\Component\Validator\Constraints\Length;
389389 use Symfony\Component\Validator\Validation;
390390
391391 // ...
392- $resolver->setAllowedValues('transport', Validation::createValidCallable (
392+ $resolver->setAllowedValues('transport', Validation::createIsValidCallable (
393393 new Length(['min' => 10 ])
394394 ));
395395
You can’t perform that action at this time.
0 commit comments