Skip to content

Commit 69aed43

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [Validator] Deprecate annotations in favor of attributes More intuitive Logic Exception message [Serializer] Deprecate annotations in favor of attributes
2 parents 5723143 + e95b077 commit 69aed43

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Tests/Validator/DoctrineLoaderTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
use Symfony\Component\Validator\Mapping\ClassMetadata;
2929
use Symfony\Component\Validator\Mapping\PropertyMetadata;
3030
use Symfony\Component\Validator\Mapping\TraversalStrategy;
31-
use Symfony\Component\Validator\Tests\Fixtures\Entity;
31+
use Symfony\Component\Validator\Tests\Fixtures\NestedAttribute\Entity;
3232
use Symfony\Component\Validator\Validation;
3333

3434
/**
@@ -40,7 +40,6 @@ public function testLoadClassMetadata()
4040
{
4141
$validator = Validation::createValidatorBuilder()
4242
->enableAnnotationMapping(true)
43-
->addDefaultDoctrineAnnotationReader()
4443
->addLoader(new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(), '{^Symfony\\\\Bridge\\\\Doctrine\\\\Tests\\\\Fixtures\\\\DoctrineLoader}'))
4544
->getValidator()
4645
;
@@ -144,7 +143,6 @@ public function testExtractEnum()
144143
$validator = Validation::createValidatorBuilder()
145144
->addMethodMapping('loadValidatorMetadata')
146145
->enableAnnotationMapping(true)
147-
->addDefaultDoctrineAnnotationReader()
148146
->addLoader(new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(), '{^Symfony\\\\Bridge\\\\Doctrine\\\\Tests\\\\Fixtures\\\\DoctrineLoader}'))
149147
->getValidator()
150148
;
@@ -162,7 +160,6 @@ public function testFieldMappingsConfiguration()
162160
{
163161
$validator = Validation::createValidatorBuilder()
164162
->enableAnnotationMapping(true)
165-
->addDefaultDoctrineAnnotationReader()
166163
->addXmlMappings([__DIR__.'/../Resources/validator/BaseUser.xml'])
167164
->addLoader(
168165
new DoctrineLoader(
@@ -204,7 +201,6 @@ public function testClassNoAutoMapping()
204201
{
205202
$validator = Validation::createValidatorBuilder()
206203
->enableAnnotationMapping(true)
207-
->addDefaultDoctrineAnnotationReader()
208204
->addLoader(new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(), '{.*}'))
209205
->getValidator();
210206

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,13 @@
4141
"symfony/uid": "^6.4|^7.0",
4242
"symfony/validator": "^6.4|^7.0",
4343
"symfony/var-dumper": "^6.4|^7.0",
44-
"doctrine/annotations": "^1.13.1|^2",
4544
"doctrine/collections": "^1.0|^2.0",
4645
"doctrine/data-fixtures": "^1.1",
4746
"doctrine/dbal": "^3.6",
4847
"doctrine/orm": "^2.15",
4948
"psr/log": "^1|^2|^3"
5049
},
5150
"conflict": {
52-
"doctrine/annotations": "<1.13.1",
5351
"doctrine/dbal": "<3.6",
5452
"doctrine/lexer": "<1.1",
5553
"doctrine/orm": "<2.15",

0 commit comments

Comments
 (0)