Skip to content

Commit 00b2a49

Browse files
committed
update changelog & cs
1 parent 47415c2 commit 00b2a49

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/Symfony/Component/Validator/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
CHANGELOG
22
=========
33

4+
5.3.0
5+
-----
6+
7+
* added the `normalizer` option to `Unique` Constraint
8+
49
5.2.0
510
-----
611

7-
* added the `valueNormalizer` option to `Unique` Constraint
812
* added a `Cascade` constraint to ease validating nested typed object properties
913
* deprecated the `allowEmptyString` option of the `Length` constraint
1014

src/Symfony/Component/Validator/Tests/Constraints/UniqueTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Validator\Constraints\Unique;
16+
use Symfony\Component\Validator\Exception\InvalidArgumentException;
1617
use Symfony\Component\Validator\Mapping\ClassMetadata;
1718
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
1819

@@ -38,14 +39,14 @@ public function testAttributes()
3839

3940
public function testInvalidNormalizerThrowsException()
4041
{
41-
$this->expectException('Symfony\Component\Validator\Exception\InvalidArgumentException');
42+
$this->expectException(InvalidArgumentException::class);
4243
$this->expectExceptionMessage('The "normalizer" option must be a valid callable ("string" given).');
4344
new Unique(['normalizer' => 'Unknown Callable']);
4445
}
4546

4647
public function testInvalidNormalizerObjectThrowsException()
4748
{
48-
$this->expectException('Symfony\Component\Validator\Exception\InvalidArgumentException');
49+
$this->expectException(InvalidArgumentException::class);
4950
$this->expectExceptionMessage('The "normalizer" option must be a valid callable ("stdClass" given).');
5051
new Unique(['normalizer' => new \stdClass()]);
5152
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy