1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:34:40 +01:00

Final phpdoc fixes

This commit is contained in:
Daniil Gentili 2019-09-18 21:31:51 +02:00
parent bbb908ac68
commit e3f6774588
2 changed files with 236 additions and 240 deletions

View File

@ -159,10 +159,6 @@ class AnnotationsBuilder
if (isset($ignoreMethods[$name])) {
continue;
}
$originalName = $name;
if ($originalName === 'loop_async') {
$originalName = 'loop';
}
if ($name == 'method_call_async_read') {
$name = 'method_call';
@ -234,7 +230,7 @@ class AnnotationsBuilder
$paramList = $hasVariadic ? "Tools::arr($paramList)" : "[$paramList]";
$doc .= "\n{\n";
$doc .= " return \$this->__call('$originalName', $paramList);\n";
$doc .= " return \$this->__call(__FUNCTION__, $paramList);\n";
$doc .= "}\n";
$internalDoc['InternalDoc'][$name]['method'] = $method->getDocComment() ?? '';

File diff suppressed because it is too large Load Diff