From 604d2a082b6179fc0f9ad2ea0ca7d23dfc27d1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20=C5=A0panja?= Date: Tue, 28 May 2024 09:49:42 +0200 Subject: [PATCH] NGSTACK-900: make sure dumped keys correspond to properties (cherry picked from commit f0317b4302d4ade7862f2d318dfacfffa9583c72) --- lib/Core/Site/Values/ContentInfo.php | 4 ++-- lib/Core/Site/Values/Field.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Core/Site/Values/ContentInfo.php b/lib/Core/Site/Values/ContentInfo.php index 498fe358..ab1a027f 100644 --- a/lib/Core/Site/Values/ContentInfo.php +++ b/lib/Core/Site/Values/ContentInfo.php @@ -100,7 +100,7 @@ public function getDebugInfo(): array 'name' => $this->name, 'published' => $this->innerContentInfo->published, 'currentVersionNo' => $this->innerContentInfo->currentVersionNo, - 'publicationDate' => $this->innerContentInfo->publishedDate, + 'publishedDate' => $this->innerContentInfo->publishedDate, 'modificationDate' => $this->innerContentInfo->modificationDate, 'languageCode' => $this->languageCode, 'mainLanguageCode' => $this->innerContentInfo->mainLanguageCode, @@ -109,7 +109,7 @@ public function getDebugInfo(): array 'isHidden' => $this->innerContentInfo->isHidden, 'sectionId' => $this->innerContentInfo->sectionId, 'ownerId' => $this->innerContentInfo->ownerId, - 'contentType' => $this->innerContentType, + 'innerContentType' => $this->innerContentType, 'mainLocation' => $this->getMainLocation(), ]; } diff --git a/lib/Core/Site/Values/Field.php b/lib/Core/Site/Values/Field.php index 23fb3bac..3de986fe 100644 --- a/lib/Core/Site/Values/Field.php +++ b/lib/Core/Site/Values/Field.php @@ -58,7 +58,7 @@ public function getDebugInfo(): array 'isEmpty' => $this->isEmpty, 'isSurrogate' => $this->isSurrogate, 'content' => $this->content, - 'fieldDefinition' => $this->innerFieldDefinition, + 'innerFieldDefinition' => $this->innerFieldDefinition, 'value' => $this->value, ]; }