Skip to content

Commit 408fd80

Browse files
committed
Fix a method name
1 parent 7e1d33d commit 408fd80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/options_resolver.rst

+2-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)