Skip to content

Commit 1b111d0

Browse files
committed
[Validator] Fixed typos pointed out by @cordoval
1 parent 7bc952d commit 1b111d0

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/Symfony/Component/Validator/ConstraintViolation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ConstraintViolation implements ConstraintViolationInterface
7272
* @param mixed $invalidValue The invalid value that caused this
7373
* violation
7474
* @param integer|null $plural The number for determining the plural
75-
* form when translation the message
75+
* form when translating the message
7676
* @param mixed $code The error code of the violation
7777
*/
7878
public function __construct($message, $messageTemplate, array $parameters, $root, $propertyPath, $invalidValue, $plural = null, $code = null)

src/Symfony/Component/Validator/Constraints/GroupSequence.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
* When validating a group sequence, each group will only be validated if all
2020
* of the previous groups in the sequence succeeded. For example:
2121
*
22-
* $validator->validate($address, new Valid(), new GroupSequence('Basic', 'Strict'));
22+
* $validator->validate($address, null, new GroupSequence('Basic', 'Strict'));
2323
*
2424
* In the first step, all constraints that belong to the group "Basic" will be
2525
* validated. If none of the constraints fail, the validator will then validate
2626
* the constraints in group "Strict". This is useful, for example, if "Strict"
2727
* contains expensive checks that require a lot of CPU or slow, external
2828
* services. You usually don't want to run expensive checks if any of the cheap
29-
* checks fails.
29+
* checks fail.
3030
*
3131
* When adding metadata to a class, you can override the "Default" group of
3232
* that class with a group sequence:
@@ -42,12 +42,12 @@
4242
* Whenever you validate that object in the "Default" group, the group sequence
4343
* will be validated:
4444
*
45-
* $validator->validate($address, new Valid());
45+
* $validator->validate($address);
4646
*
4747
* If you want to execute the constraints of the "Default" group for a class
4848
* with an overridden default group, pass the class name as group name instead:
4949
*
50-
* $validator->validate($address, new Valid(), "Address")
50+
* $validator->validate($address, null, "Address")
5151
*
5252
* @Annotation
5353
*

src/Symfony/Component/Validator/Mapping/ClassMetadataInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
use Symfony\Component\Validator\ClassBasedInterface;
1515
use Symfony\Component\Validator\PropertyMetadataContainerInterface as LegacyPropertyMetadataContainerInterface;
1616

17-
;
18-
1917
/**
2018
* Stores all metadata needed for validating objects of specific class.
2119
*

src/Symfony/Component/Validator/Mapping/GenericMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @since 2.5
2727
* @author Bernhard Schussek <[email protected]>
2828
*/
29-
class GenericMetadata implements MetadataInterface
29+
class GenericMetadata implements MetadataInterface
3030
{
3131
/**
3232
* @var Constraint[]

0 commit comments

Comments
 (0)