From 1f72072e2230d582f2ff3612c2170c468e17f2ed Mon Sep 17 00:00:00 2001 From: YaroslavStynskyi Date: Wed, 23 Jun 2021 16:31:07 +0300 Subject: [PATCH] Update package version --- CHANGELOG.md | 5 ++--- composer.json | 2 +- src/EntityManager/Annotation/ResponseType.php | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c01fb4..8baace5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [v1.1.0] - 2021-06-18 - +## [v2.0.0] - 2021-06-23 ### Added - Add new file entity to serialize @@ -14,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Refactor factories -- Update serializer version +- Update jms/serializer to 3+ version - Update guzzle to 7+ version ### Deprecated diff --git a/composer.json b/composer.json index 5281af7..1767020 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "php": ">=7.1", "guzzlehttp/guzzle": "^7.0.0", "doctrine/annotations": "~1.6", - "jms/serializer": "1.14.*", + "jms/serializer": "^3.12.0", "ext-ctype": "*", "ext-json": "*" }, diff --git a/src/EntityManager/Annotation/ResponseType.php b/src/EntityManager/Annotation/ResponseType.php index 5f76490..2a46a98 100644 --- a/src/EntityManager/Annotation/ResponseType.php +++ b/src/EntityManager/Annotation/ResponseType.php @@ -4,7 +4,7 @@ namespace SignNow\Rest\EntityManager\Annotation; use InvalidArgumentException; -use JMS\Serializer\TypeParser; +use JMS\Serializer\Type\Parser; use SignNow\Rest\Entity\Binary; use Throwable; @@ -46,7 +46,7 @@ public function initialize(...$args) } try { - (new TypeParser())->parse($this->type); + (new Parser())->parse($this->type); } catch (Throwable $e) { throw new InvalidArgumentException('Invalid response type format: ' . $e->getMessage()); }