The method getValue() does not exist on Digia\GraphQL\Language\AST\Node\NodeInterface. It seems like you code against a sub-type of Digia\GraphQL\Language\AST\Node\NodeInterface such as Digia\GraphQL\Language\AST\Node\ArgumentNode or Digia\GraphQL\Language\AST\Node\NameNode or Digia\GraphQL\Language\AST\Node\ObjectFieldNode or Digia\GraphQL\Language\AST\Node\IntValueNode or Digia\GraphQL\Language\AST\Node\FloatValueNode or Digia\GraphQL\Language\AST\Node\BooleanValueNode or Digia\GraphQL\Language\AST\Node\StringValueNode or Digia\GraphQL\Language\AST\Node\EnumValueNode.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
18
/** @scrutinizer ignore-call */
19
$value = $node->getValue();
Loading history...
19
20
// TODO: Support printing block strings.
21
return jsonEncode($value);
22
}
23
24
/**
25
* @inheritdoc
26
*/
27
public function supportsWriter(NodeInterface $node): bool