@@ -31,7 +31,7 @@ your application::
31
31
}
32
32
33
33
So far, this is just an ordinary class that serves some purpose inside your
34
- application. The goal of validation is to tell you whether the data
34
+ application. The goal of validation is to tell you if the data
35
35
of an object is valid. For this to work, you'll configure a list of rules
36
36
(called :ref: `constraints <validation-constraints >`) that the object must
37
37
follow in order to be valid. These rules can be specified via a number of
@@ -112,7 +112,7 @@ Using the ``validator`` Service
112
112
Next, to actually validate an ``Author `` object, use the ``validate `` method
113
113
on the ``validator `` service (class :class: `Symfony\\ Component\\ Validator\\ Validator `).
114
114
The job of the ``validator `` is easy: to read the constraints (i.e. rules)
115
- of a class and verify whether the data on the object satisfies those
115
+ of a class and verify if the data on the object satisfies those
116
116
constraints. If validation fails, a non-empty list of errors
117
117
(class :class: `Symfony\\ Component\\ Validator\\ ConstraintViolationList `) is
118
118
returned. Take this simple example from inside a controller::
@@ -303,7 +303,7 @@ to its class and then pass it to the ``validator`` service.
303
303
Behind the scenes, a constraint is simply a PHP object that makes an assertive
304
304
statement. In real life, a constraint could be: "The cake must not be burned".
305
305
In Symfony, constraints are similar: they are assertions that a condition
306
- is true. Given a value, a constraint will tell you whether that value
306
+ is true. Given a value, a constraint will tell you if that value
307
307
adheres to the rules of the constraint.
308
308
309
309
Supported Constraints
0 commit comments