diff --git a/src/GraphQL/DataObjectTypeFactory.php b/src/GraphQL/DataObjectTypeFactory.php index 65c23eac..291f219c 100644 --- a/src/GraphQL/DataObjectTypeFactory.php +++ b/src/GraphQL/DataObjectTypeFactory.php @@ -44,7 +44,13 @@ public function build(string $className, $config = [], $context = []) { if (!isset(self::$registry[$className])) { $class = ClassDefinition::getByName($className); - $operatorImpl = new $this->className($this->getGraphQlService(), $className, $class->getId(), $config, $context); + $operatorImpl = new $this->className( + $this->getGraphQlService(), + $className, + $class->getId(), + $config, + $context + ); self::$registry[$className] = $operatorImpl; } diff --git a/src/GraphQL/Service.php b/src/GraphQL/Service.php index e4fffa2f..a8f55b89 100644 --- a/src/GraphQL/Service.php +++ b/src/GraphQL/Service.php @@ -439,9 +439,8 @@ public function buildGeneralType($typeName) public function buildDataObjectType(string $className, $config = [], $context = []) { $factory = $this->generalTypeGeneratorFactories->get('object'); - $result = $factory->build($className, $config, $context); - return $result; + return $factory->build($className, $config, $context);; } /**