Some templates

This commit is contained in:
Daniil Gentili 2020-10-18 15:02:37 +02:00
parent eca8542be4
commit bda520122d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
6 changed files with 17 additions and 12 deletions

View File

@ -44,7 +44,6 @@
"amphp/websocket-client": "^1.0"
},
"require-dev": {
"danog/class-finder": "dev-master",
"phpdocumentor/reflection-docblock": "^5.2",
"vlucas/phpdotenv": "^3",
"ennexa/amp-update-cache": "dev-master",
@ -57,8 +56,8 @@
"danog/7to5": "^1",
"vimeo/psalm": "dev-master",
"phpstan/phpstan": "^0.12.14",
"friendsofphp/php-cs-fixer": "dev-master",
"danog/phpdoc": "^0.1"
"friendsofphp/php-cs-fixer": "^2.16",
"danog/phpdoc": "^0.1.7"
},
"suggest": {
"ext-libtgvoip": "Install the php-libtgvoip extension to make phone calls (https://github.com/danog/php-libtgvoip)"

2
docs

@ -1 +1 @@
Subproject commit 0510e69e08411194203f4034b6d4b3e3232aea75
Subproject commit e83c3ea026fc2142b6558378d0c9636c8c29f248

View File

@ -5273,7 +5273,13 @@ class InternalDoc extends APIFactory
*
* @return \Amp\Promise Info object
*
* @template TConstructor
* @psalm-param $id array{_: TConstructor}|mixed
*
* @return (((mixed|string)[]|mixed|string)[]|int|mixed|string)[]
*
* @psalm-return \Generator<int|mixed, \Amp\Promise|\Amp\Promise<string>|array, mixed, array{
* TConstructor: array
* InputPeer: array{_: string, user_id?: mixed, access_hash?: mixed, min?: mixed, chat_id?: mixed, channel_id?: mixed},
* Peer: array{_: string, user_id?: mixed, chat_id?: mixed, channel_id?: mixed},
* DialogPeer: array{_: string, peer: array{_: string, user_id?: mixed, chat_id?: mixed, channel_id?: mixed}},
@ -5385,7 +5391,7 @@ class InternalDoc extends APIFactory
*
* @see https://docs.madelineproto.xyz/Chat.html
*
* @return \Amp\Promise<array> Chat object
* @return \Amp\Promise Chat object
*/
public function getPwrChat($id, bool $fullfetch = true, bool $send = true, array $extra = [])
{

View File

@ -105,7 +105,7 @@ class OutgoingMessage extends Message
private bool $fileRelated = false;
/**
* Custom flood wait limit for this bot
* Custom flood wait limit for this bot.
*/
private ?int $floodWaitLimit = null;
@ -578,7 +578,7 @@ class OutgoingMessage extends Message
}
/**
* Get custom flood wait limit for this bot
* Get custom flood wait limit for this bot.
*
* @return ?int
*/
@ -588,7 +588,7 @@ class OutgoingMessage extends Message
}
/**
* Set custom flood wait limit for this bot
* Set custom flood wait limit for this bot.
*
* @param ?int $floodWaitLimit Custom flood wait limit for this bot
*