Skip to content

Commit 5e2bff9

Browse files
committed
minor #16289 Correct spelling & grammar in 4.4 validation/ (gnito-org)
This PR was merged into the 4.4 branch. Discussion ---------- Correct spelling & grammar in 4.4 validation/ <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases 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 `5.x` for features of unreleased versions). --> Commits ------- 30882c9 Correct spelling & grammar in 4.4 validation/
2 parents 166607f + 30882c9 commit 5e2bff9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

validation/custom_constraint.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ First you need to create a Constraint class and extend :class:`Symfony\\Componen
2929

3030
.. note::
3131

32-
The ``@Annotation`` annotation is necessary for this new constraint in
33-
order to make it available for use in classes via annotations.
32+
The ``@Annotation`` annotation is necessary for this new constraint
33+
to make it available for use in classes via annotations.
3434
Options for your constraint are represented as public properties on the
3535
constraint class.
3636

@@ -217,8 +217,8 @@ With this, the validator's ``validate()`` method gets an object as its first arg
217217

218218
.. tip::
219219

220-
The ``atPath()`` method defines the property which the validation error is
221-
associated to. Use any :doc:`valid PropertyAccess syntax </components/property_access>`
220+
The ``atPath()`` method defines the property with which the validation error is
221+
associated. Use any :doc:`valid PropertyAccess syntax </components/property_access>`
222222
to define that property.
223223

224224
A class constraint validator is applied to the class itself, and

validation/groups.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ With this configuration, there are three validation groups:
142142

143143
``registration``
144144
This is a custom validation group, so it only contains the constraints
145-
explicitly associated to it. In this example, only the ``email`` and
145+
that are explicitly associated with it. In this example, only the ``email`` and
146146
``password`` fields.
147147

148148
Constraints in the ``Default`` group of a class are the constraints that have

validation/sequence_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ method, which should return an array of groups to use::
288288
public function getGroupSequence()
289289
{
290290
// when returning a simple array, if there's a violation in any group
291-
// the rest of groups are not validated. E.g. if 'User' fails,
291+
// the rest of the groups are not validated. E.g. if 'User' fails,
292292
// 'Premium' and 'Api' are not validated:
293293
return ['User', 'Premium', 'Api'];
294294

0 commit comments

Comments
 (0)