Skip to content

Commit

Permalink
[FrameworkBundle][Serializer] Deprecate annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Oct 17, 2023
1 parent 2748e08 commit 61dc1ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Tests/Extractor/SerializerExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy;
use Symfony\Component\PropertyInfo\Tests\Fixtures\IgnorePropertyDummy;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;

/**
* @author Kévin Dunglas <dunglas@gmail.com>
Expand All @@ -28,7 +28,7 @@ class SerializerExtractorTest extends TestCase

protected function setUp(): void
{
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader());
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader());
$this->extractor = new SerializerExtractor($classMetadataFactory);
}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"symfony/string": "^5.4|^6.0|^7.0"
},
"require-dev": {
"symfony/serializer": "^5.4|^6.0|^7.0",
"symfony/serializer": "^6.4|^7.0",
"symfony/cache": "^5.4|^6.0|^7.0",
"symfony/dependency-injection": "^5.4|^6.0|^7.0",
"phpdocumentor/reflection-docblock": "^5.2",
Expand All @@ -37,7 +37,7 @@
"phpdocumentor/reflection-docblock": "<5.2",
"phpdocumentor/type-resolver": "<1.5.1",
"symfony/dependency-injection": "<5.4",
"symfony/serializer": "<5.4"
"symfony/serializer": "<6.4"
},
"autoload": {
"psr-4": { "Symfony\\Component\\PropertyInfo\\": "" },
Expand Down

0 comments on commit 61dc1ec

Please sign in to comment.