From a268e06dd9707488514e389d418195a49f2bca10 Mon Sep 17 00:00:00 2001 From: Jordi Date: Fri, 18 Oct 2024 11:40:08 +0200 Subject: [PATCH] try again --- src/Serializer/InterfaceTypeExtractor.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Serializer/InterfaceTypeExtractor.php b/src/Serializer/InterfaceTypeExtractor.php index a7060f364..7216a12fe 100644 --- a/src/Serializer/InterfaceTypeExtractor.php +++ b/src/Serializer/InterfaceTypeExtractor.php @@ -85,17 +85,17 @@ public function getType(string $class, string $property, array $context = []): ? { if ($this->pageClass === $class) { if ('children' === $property) { - return Type::collection(Type::object($this->pageClass)); + return Type::list(Type::object($this->pageClass)); } if ('blocks' === $property) { - return Type::collection(Type::object($this->blockClass)); + return Type::list(Type::object($this->blockClass)); } if ('parent' === $property) { - return Type::collection(Type::object($this->pageClass)); + return Type::list(Type::object($this->pageClass)); } } elseif ($this->blockClass === $class) { if ('children' === $property) { - return Type::collection(Type::object($this->blockClass)); + return Type::list(Type::object($this->blockClass)); } }