diff --git a/src/Serializer/ArticleVoRNormalizer.php b/src/Serializer/ArticleVoRNormalizer.php index 1cadcda2..9a14b006 100644 --- a/src/Serializer/ArticleVoRNormalizer.php +++ b/src/Serializer/ArticleVoRNormalizer.php @@ -17,6 +17,7 @@ use eLife\ApiSdk\Model\Reference; use function GuzzleHttp\Promise\promise_for; use GuzzleHttp\Promise\PromiseInterface; +use phpDocumentor\Reflection\DocBlock\Tags\Var_; final class ArticleVoRNormalizer extends ArticleVersionNormalizer { @@ -182,7 +183,7 @@ protected function denormalizeArticle( return $elifeAssessment['scietyUri'] ?? null; }); - $data['elifeAssessment'] = $data['elifeAssessment'] + $data['elifeAssessmentArticleSection'] = $data['elifeAssessment'] ->then(function (array $elifeAssessment = null) use ($format, $context) { if (empty($elifeAssessment)) { return null; @@ -320,7 +321,7 @@ protected function denormalizeArticle( $data['decisionLetter'], $decisionLetterDescription, $data['authorResponse'], - $data['elifeAssessment'], + $data['elifeAssessmentArticleSection'], $elifeAssessmentTitle, $elifeAssessmentScietyUri, $data['recommendationsForAuthors'],