mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 06:39:01 +01:00
Fixup
This commit is contained in:
parent
fa33281b63
commit
79953f2698
@ -904,10 +904,6 @@ abstract class InternalDoc
|
||||
return $this->wrapper->getAPI()->getInfo($id, $type);
|
||||
}
|
||||
|
||||
public function getInputDialogPeer(mixed $id): array
|
||||
{
|
||||
return $this->wrapper->getAPI()->getInputDialogPeer($id);
|
||||
}
|
||||
/**
|
||||
* Get logger.
|
||||
*/
|
||||
|
@ -1881,6 +1881,7 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
|
||||
],
|
||||
);
|
||||
}
|
||||
/** @internal */
|
||||
public function getInputDialogPeer(mixed $id): array
|
||||
{
|
||||
return ['_' => 'inputDialogPeer', 'peer' => $this->getInputPeer($id)];
|
||||
|
@ -479,7 +479,7 @@ final class Blacklist {
|
||||
}
|
||||
$name = StrTools::toCamelCase($name);
|
||||
$name = str_ireplace(['mtproto', 'api'], ['MTProto', 'API'], $name);
|
||||
$doc = 'public ';
|
||||
$doc = 'final public ';
|
||||
if ($static) {
|
||||
$doc .= 'static ';
|
||||
}
|
||||
|
@ -282,6 +282,7 @@ trait Methods
|
||||
if (\in_array(strtolower($name), ['update2fa', 'getdialogids', 'getdialogs', 'getfulldialogs', 'getpwrchat', 'getfullinfo', 'getinfo', 'getid', 'getself', '__magic_construct', '__construct', '__destruct', '__sleep', '__wakeup'], true)) {
|
||||
continue;
|
||||
}
|
||||
var_dump($name, $method->getDocComment());
|
||||
$doc = $method->getDocComment();
|
||||
if (str_contains($doc, '@internal') || str_contains($doc, '@deprecated')) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user