public static function valueDoesNotMatchType(FieldDefinition $type, $value) : InvalidValueException { return new self(sprintf("Value \"%s\" does not match type \"%s\"", (string) new StringConverter($value), $type->name())); }