Skip to content

Commit 52d5a45

Browse files
author
infobip-ci
committed
UPDATED Symfony serializer
1 parent 171a5e0 commit 52d5a45

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to the library will be documented in this file.
44

55
The format of the file is based on [Keep a Changelog](http://keepachangelog.com/) and this library adheres to [Semantic Versioning](http://semver.org/) as mentioned in the [README.md][readme] file.
66

7+
## [ [5.1.5](https://github.com/infobip/infobip-api-php-client/releases/tag/5.1.3) ] - 2024-01-09
8+
9+
### Changed
10+
- Updated symfony/serializer dependency to ^5.4
11+
712
## [ [5.1.3](https://github.com/infobip/infobip-api-php-client/releases/tag/5.1.3) ] - 2023-06-19
813

914
### Fixed

Infobip/ObjectSerializer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use Symfony\Component\PropertyInfo\PropertyInfoExtractor;
3535
use Symfony\Component\Serializer\Encoder\JsonEncoder;
3636
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory;
37-
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
37+
use Symfony\Component\Serializer\Mapping\Loader\AttributeLoader;
3838
use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
3939
use Symfony\Component\Serializer\Normalizer\ArrayDenormalizer;
4040
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
@@ -56,7 +56,7 @@ final class ObjectSerializer
5656
public function __construct(?SerializerInterface $serializer = null)
5757
{
5858
if ($serializer === null) {
59-
$classMetadataFactory = new ClassMetadataFactory(new AnnotationLoader(new AnnotationReader()));
59+
$classMetadataFactory = new ClassMetadataFactory(new AttributeLoader(new AnnotationReader()));
6060
$extractor = new PropertyInfoExtractor([], [new PhpDocExtractor(), new ReflectionExtractor()]);
6161

6262
$serializer = new Serializer(

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"ext-mbstring": "*",
3131
"guzzlehttp/guzzle": "~7.0",
3232
"symfony/validator": "^5.0|^6.0",
33-
"symfony/serializer": "^5.0|^6.0",
33+
"symfony/serializer": "^5.4",
3434
"symfony/property-access": "^5.0|^6.0",
3535
"symfony/cache": "^5.0|^6.0",
3636
"doctrine/annotations": "~1.0",

0 commit comments

Comments
 (0)