$valueNode of type GraphQL\Language\AST\Node is incompatible with the type iterable expected by parameter $nodes of GraphQL\Error\Error::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
25
throw new Error('Query error: Can only parse strings got: ' . $valueNode->kind, /** @scrutinizer ignore-type */ $valueNode);
Loading history...
26
}
27
28
// @codeCoverageIgnoreEnd
29
30
return $valueNode->value;
31
}
32
33
public function parseValue(mixed $value): PHPDateTime|false
34
{
35
if (! is_string($value)) {
36
throw new Error('Time is not a string: ' . $value);