Skip to content

Commit 4b01042

Browse files
committed
Fix a wrong method name
1 parent 408fd80 commit 4b01042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ when :ref:`validating OptionsResolver values <optionsresolver-validate-value>`):
244244
:method:`Symfony\\Component\\Validator\\Validation::createCallable`
245245
This returns a closure that throws ``ValidationFailedException`` when the
246246
constraints aren't matched.
247-
:method:`Symfony\\Component\\Validator\\Validation::createValidCallable`
247+
:method:`Symfony\\Component\\Validator\\Validation::createIsValidCallable`
248248
This returns a closure that returns ``false`` when the constraints aren't matched.
249249

250250
.. versionadded:: 5.1
@@ -253,7 +253,7 @@ when :ref:`validating OptionsResolver values <optionsresolver-validate-value>`):
253253

254254
.. versionadded:: 5.3
255255

256-
``Validation::createValidCallable()`` was introduced in Symfony 5.3.
256+
``Validation::createIsValidCallable()`` was introduced in Symfony 5.3.
257257

258258
.. index::
259259
single: Validation; Constraints

0 commit comments

Comments
 (0)