static function requiredSubselectionMessage($field, $type) { return "Field \"{$field}\" of type \"{$type}\" must have a sub selection."; }
private function missingObjSubselection($field, $type, $line, $column) { return FormattedError::create(ScalarLeafs::requiredSubselectionMessage($field, $type), [new SourceLocation($line, $column)]); }