Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
jordisala1991 committed Oct 18, 2024
1 parent 8298060 commit a268e06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Serializer/InterfaceTypeExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit a268e06

Please sign in to comment.