File tree 1 file changed +2
-2
lines changed
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::
381
381
.. tip ::
382
382
383
383
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 `
385
385
method::
386
386
387
387
use Symfony\Component\OptionsResolver\OptionsResolver;
388
388
use Symfony\Component\Validator\Constraints\Length;
389
389
use Symfony\Component\Validator\Validation;
390
390
391
391
// ...
392
- $resolver->setAllowedValues('transport', Validation::createValidCallable (
392
+ $resolver->setAllowedValues('transport', Validation::createIsValidCallable (
393
393
new Length(['min' => 10 ])
394
394
));
395
395
You can’t perform that action at this time.
0 commit comments