From 41596db7590061639937bab012c70407ea77e600 Mon Sep 17 00:00:00 2001 From: David Moulton Date: Thu, 19 Dec 2024 14:41:34 +0000 Subject: [PATCH] Tighten a conditional check when denormalizing an ArticleVor https://github.com/elifesciences/issues/issues/9034 --- src/Serializer/ArticleVoRNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serializer/ArticleVoRNormalizer.php b/src/Serializer/ArticleVoRNormalizer.php index edf1be4f..95fcee7a 100644 --- a/src/Serializer/ArticleVoRNormalizer.php +++ b/src/Serializer/ArticleVoRNormalizer.php @@ -30,7 +30,7 @@ protected function denormalizeArticle( array $context = [] ) : ArticleVersion { - if (empty($data['elifeAssessment'])) { + if (empty($data['elifeAssessment']) || !isset($data['elifeAssessment'])) { $elifeAssessmentTitle = null; $elifeAssessmentScietyUri = null; $elifeAssessmentArticleSection = null;