diff --git a/composer.json b/composer.json index 7e8c126f..700dd5c2 100644 --- a/composer.json +++ b/composer.json @@ -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)" @@ -120,4 +119,4 @@ "docs": "php tools/build_docs.php", "test": "@php -dzend.assertions=1 -dassert.exception=1 ./vendor/bin/phpunit --coverage-text --config tests/phpunit.xml" } -} \ No newline at end of file +} diff --git a/docs b/docs index 0510e69e..e83c3ea0 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 0510e69e08411194203f4034b6d4b3e3232aea75 +Subproject commit e83c3ea026fc2142b6558378d0c9636c8c29f248 diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index 1dd322db..b966be95 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -42,7 +42,7 @@ use danog\MadelineProto\Stream\Transport\WsStream; * Manages connection to Telegram datacenters * * @internal - * + * * @author Daniil Gentili */ class Connection diff --git a/src/danog/MadelineProto/InternalDoc.php b/src/danog/MadelineProto/InternalDoc.php index f4a3a629..cb3a6158 100644 --- a/src/danog/MadelineProto/InternalDoc.php +++ b/src/danog/MadelineProto/InternalDoc.php @@ -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|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 Chat object + * @return \Amp\Promise Chat object */ public function getPwrChat($id, bool $fullfetch = true, bool $send = true, array $extra = []) { diff --git a/src/danog/MadelineProto/MTProto/OutgoingMessage.php b/src/danog/MadelineProto/MTProto/OutgoingMessage.php index 07975131..f40ec22d 100644 --- a/src/danog/MadelineProto/MTProto/OutgoingMessage.php +++ b/src/danog/MadelineProto/MTProto/OutgoingMessage.php @@ -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 * diff --git a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php index 57e33bd8..d92da1e0 100644 --- a/src/danog/MadelineProto/MTProtoTools/PeerHandler.php +++ b/src/danog/MadelineProto/MTProtoTools/PeerHandler.php @@ -481,7 +481,7 @@ trait PeerHandler * * @template TConstructor * @psalm-param $id array{_: TConstructor}|mixed - * + * * @return (((mixed|string)[]|mixed|string)[]|int|mixed|string)[] * * @psalm-return \Generator|array, mixed, array{ @@ -660,7 +660,7 @@ trait PeerHandler /** * @template TConstructor * @psalm-param $constructor array{_: TConstructor} - * + * * @return (((mixed|string)[]|mixed|string)[]|int|mixed|string)[] * * @psalm-return array{