Fix return type documentation in function constructors.
GitOrigin-RevId: f5311028ad942622a92eb72ddc6eda87b40fea35
This commit is contained in:
parent
f819797ae1
commit
accd15d78c
@ -241,9 +241,11 @@ abstract class TlDocumentationGenerator
|
||||
}
|
||||
$this->addClassDocumentation($class_name, $base_class_name, $class_description);
|
||||
|
||||
foreach ($known_fields as $name => $type) {
|
||||
$may_be_null = stripos($info[$name], 'may be null') !== false;
|
||||
$this->addFieldDocumentation($class_name, $this->getFieldName($name, $class_name), $this->getTypeName($type), $info[$name], $may_be_null);
|
||||
foreach ($known_fields as $field_name => $field_type) {
|
||||
$may_be_null = stripos($info[$field_name], 'may be null') !== false;
|
||||
$field_name = $this->getFieldName($field_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);
|
||||
}
|
||||
|
||||
if ($is_function) {
|
||||
|
Reference in New Issue
Block a user