Fix documentation.

GitOrigin-RevId: 84730331f206451dee9232611f7af985792bd766
This commit is contained in:
levlam 2019-04-11 00:59:57 +03:00
parent 88788b2460
commit 56bc1548ff

View File

@ -241,11 +241,11 @@ abstract class TlDocumentationGenerator
}
$this->addClassDocumentation($class_name, $base_class_name, $class_description);
foreach ($known_fields as $field_name => $field_type) {
foreach ($known_fields as $name => $field_type) {
$may_be_null = stripos($info[$field_name], 'may be null') !== false;
$field_name = $this->getFieldName($field_name, $class_name);
$field_name = $this->getFieldName($name, $class_name);
$field_type_name = $this->getTypeName($field_type);
$this->addFieldDocumentation($class_name, $field_name, $field_type_name, $info[$field_name], $may_be_null);
$this->addFieldDocumentation($class_name, $field_name, $field_type_name, $info[$name], $may_be_null);
}
if ($is_function) {