From f56f446078df52b60f40f0280407c76ea037fc78 Mon Sep 17 00:00:00 2001 From: Danil Pyatnitsev Date: Wed, 19 Feb 2025 17:44:12 +0700 Subject: [PATCH 1/2] fix support of jms serializer newer than 3.29.1, now this library required doctrine/annotations. --- composer.json | 3 ++- src/Dto/JobDto.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0038461..4757483 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "ext-json": "*", "psr/http-client-implementation": "^1.0", "jms/serializer": "^3.17", - "ext-mbstring": "*" + "ext-mbstring": "*", + "doctrine/annotations": "^2.0" }, "require-dev": { "nyholm/psr7": "^1.5", diff --git a/src/Dto/JobDto.php b/src/Dto/JobDto.php index 8586997..06c7d25 100644 --- a/src/Dto/JobDto.php +++ b/src/Dto/JobDto.php @@ -101,7 +101,7 @@ class JobDto * @Type("array") * @SerializedName("processors") */ - private ?array $processors = []; + private ?array $processors = null; /** * @Type("int") From 25e4889ba2c11c8f970e8cd7be5f343c6de48058 Mon Sep 17 00:00:00 2001 From: Danil Pyatnitsev Date: Wed, 19 Feb 2025 18:08:26 +0700 Subject: [PATCH 2/2] fix support of jms serializer newer than 3.29.1, now this library required doctrine/annotations. --- src/Dto/JobDto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dto/JobDto.php b/src/Dto/JobDto.php index 06c7d25..8586997 100644 --- a/src/Dto/JobDto.php +++ b/src/Dto/JobDto.php @@ -101,7 +101,7 @@ class JobDto * @Type("array") * @SerializedName("processors") */ - private ?array $processors = null; + private ?array $processors = []; /** * @Type("int")