Fix custom scalar

This commit is contained in:
Jake Barnby
2026-01-21 13:59:24 +13:00
parent e9698c96f0
commit 9b8dcfda07
+2 -2
View File
@@ -6,11 +6,11 @@ use GraphQL\Language\AST\Node;
use GraphQL\Type\Definition\ScalarType;
// https://github.com/webonyx/graphql-php/issues/129#issuecomment-309366803
class Assoc extends Json
class Assoc extends ScalarType
{
public function __construct()
{
ScalarType::__construct([
parent::__construct([
'name' => 'Assoc',
'description' => 'The `Assoc` scalar type represents associative array values.',
]);