private function schemaWithFieldArgOfType($argType)
{
$someIncorrectInputType = new InputObjectType(['name' => 'SomeIncorrectInputType', 'fields' => function () use($argType) {
return ['val' => ['type' => $argType]];
}]);
$queryType = new ObjectType(['name' => 'QueryType', 'fields' => ['f2' => ['type' => Type::float(), 'args' => ['arg' => ['type' => $someIncorrectInputType]]]]]);
return new Schema(['query' => $queryType]);
}