Skip to content

Commit 24c0c5e

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: [FrameworkBundle] Fix changelog [Validator] Un-deprecate passing an annotation reader to AnnotationLoader
2 parents 1a46c96 + 8f8abe8 commit 24c0c5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ CHANGELOG
2222
* Allow single integer for the `versions` option of the `Uuid` constraint
2323
* Allow single constraint to be passed to the `constraints` option of the `When` constraint
2424
* Deprecate Doctrine annotations support in favor of native attributes
25-
* Deprecate passing an annotation reader to the constructor signature of `AnnotationLoader`
2625
* Deprecate `ValidatorBuilder::setDoctrineAnnotationReader()`
2726
* Deprecate `ValidatorBuilder::addDefaultDoctrineAnnotationReader()`
2827
* Add `number`, `finite-number` and `finite-float` types to `Type` constraint

Tests/Mapping/Loader/AnnotationLoaderTest.php renamed to Tests/Mapping/Loader/AttributeLoaderTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
use Symfony\Component\Validator\Constraints\Valid;
3131
use Symfony\Component\Validator\Mapping\ClassMetadata;
3232
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
33+
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
3334
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
3435

35-
class AnnotationLoaderTest extends TestCase
36+
class AttributeLoaderTest extends TestCase
3637
{
3738
public function testLoadClassMetadataReturnsTrueIfSuccessful()
3839
{
@@ -212,7 +213,7 @@ public function testLoadGroupSequenceProviderAnnotation()
212213

213214
protected function createAnnotationLoader(): AnnotationLoader
214215
{
215-
return new AnnotationLoader();
216+
return new AttributeLoader();
216217
}
217218

218219
protected function getFixtureNamespace(): string

0 commit comments

Comments
 (0)