1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 04:11:11 +01:00
This commit is contained in:
Github Actions 2023-01-19 22:20:24 +01:00
parent 36a83a338a
commit 54794d5f21

View File

@ -35,8 +35,6 @@ use danog\MadelineProto\Stream\ConnectionContext;
use danog\MadelineProto\Stream\MTProtoBufferInterface; use danog\MadelineProto\Stream\MTProtoBufferInterface;
use danog\MadelineProto\Stream\MTProtoTransport\HttpsStream; use danog\MadelineProto\Stream\MTProtoTransport\HttpsStream;
use danog\MadelineProto\Stream\MTProtoTransport\HttpStream; use danog\MadelineProto\Stream\MTProtoTransport\HttpStream;
use danog\MadelineProto\Stream\StreamInterface;
use danog\Serializable;
/** /**
* Connection class. * Connection class.
@ -44,7 +42,7 @@ use danog\Serializable;
* Manages connection to Telegram datacenters * Manages connection to Telegram datacenters
* *
* @psalm-suppress RedundantPropertyInitializationCheck * @psalm-suppress RedundantPropertyInitializationCheck
* *
* @internal * @internal
* @author Daniil Gentili <daniil@daniil.it> * @author Daniil Gentili <daniil@daniil.it>
*/ */
@ -83,9 +81,9 @@ final class Connection
protected CleanupLoop $cleanup; protected CleanupLoop $cleanup;
/** /**
* The actual socket. * The actual socket.
* * @var (MTProtoBufferInterface&BufferedStreamInterface)|null
*/ */
public (MTProtoBufferInterface&BufferedStreamInterface)|null $stream = null; public MTProtoBufferInterface|null $stream = null;
/** /**
* Connection context. * Connection context.
* *
@ -255,7 +253,7 @@ final class Connection
} }
/** /**
* Connects to a telegram DC using the specified protocol, proxy and connection parameters. * Connects to a telegram DC using the specified protocol, proxy and connection parameters.
* *
* @param ConnectionContext $ctx Connection context * @param ConnectionContext $ctx Connection context
*/ */
public function connect(ConnectionContext $ctx): void public function connect(ConnectionContext $ctx): void