Skip to content

Commit 97862fe

Browse files
committed
minor #13190 Update form.rst (Yohann76)
This PR was merged into the 5.0 branch. Discussion ---------- Update form.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 27e714e Update form.rst
2 parents f2b6977 + 27e714e commit 97862fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/form.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,9 @@ method. This is useful when you'd like to validate the form without showing
763763
validation errors to the user (i.e. during a partial AJAX submission or
764764
:doc:`dynamic form modification </form/dynamic_form_modification>`).
765765

766-
Because clearing the errors makes the form valid, ``clearErrors()`` should only
766+
Because clearing the errors makes the form valid,
767+
:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors` should only
768+
767769
be called after testing whether the form is valid.
768770

769771
Learn more

0 commit comments

Comments
 (0)