Fix smore typehints

This commit is contained in:
Daniil Gentili 2020-10-01 21:04:53 +02:00
parent ca2cbe4ecb
commit 297dca7f2c
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
8 changed files with 15 additions and 14 deletions

View File

@ -163,7 +163,7 @@ class DataCenterConnection implements JsonSerializable
/** /**
* Check if auth key is present. * Check if auth key is present.
* *
* @param boolean|null $temp Whether to fetch the temporary auth key * @param bool $temp
* *
* @return bool * @return bool
*/ */
@ -175,7 +175,7 @@ class DataCenterConnection implements JsonSerializable
* Set auth key. * Set auth key.
* *
* @param AuthKey|null $key The auth key * @param AuthKey|null $key The auth key
* @param boolean|null $temp Whether to set the temporary auth key * @param bool $temp
* *
* @return void * @return void
*/ */
@ -186,7 +186,7 @@ class DataCenterConnection implements JsonSerializable
/** /**
* Get temporary authorization key. * Get temporary authorization key.
* *
* @return AuthKey * @return TempAuthKey
*/ */
public function getTempAuthKey(): TempAuthKey public function getTempAuthKey(): TempAuthKey
{ {
@ -195,7 +195,7 @@ class DataCenterConnection implements JsonSerializable
/** /**
* Get permanent authorization key. * Get permanent authorization key.
* *
* @return AuthKey * @return PermAuthKey
*/ */
public function getPermAuthKey(): PermAuthKey public function getPermAuthKey(): PermAuthKey
{ {

View File

@ -12,7 +12,8 @@ abstract class SqlArray extends DriverArray
/** /**
* Create table for property. * Create table for property.
* *
* @return array|null * @return \Generator
*
* @throws \Throwable * @throws \Throwable
*/ */
abstract protected function prepareTable(): \Generator; abstract protected function prepareTable(): \Generator;

View File

@ -188,7 +188,7 @@ trait CallHandler
* @param array $args Arguments * @param array $args Arguments
* @param array $aargs Additional arguments * @param array $aargs Additional arguments
* *
* @return Promise * @return \Generator
*/ */
public function objectCall(string $object, $args = [], array $aargs = ['msg_id' => null]): \Generator public function objectCall(string $object, $args = [], array $aargs = ['msg_id' => null]): \Generator
{ {

View File

@ -141,7 +141,7 @@ class HttpProxy implements RawProxyStreamInterface, BufferedProxyStreamInterface
* *
* @param int $length Length of data that is going to be written to the write buffer * @param int $length Length of data that is going to be written to the write buffer
* *
* @return \Generator * @return Promise
*/ */
public function getWriteBuffer(int $length, string $append = ''): Promise public function getWriteBuffer(int $length, string $append = ''): Promise
{ {
@ -152,7 +152,7 @@ class HttpProxy implements RawProxyStreamInterface, BufferedProxyStreamInterface
* *
* @param int $length Length of payload, as detected by this layer * @param int $length Length of payload, as detected by this layer
* *
* @return \Generator * @return Promise
*/ */
public function getReadBuffer(&$length): Promise public function getReadBuffer(&$length): Promise
{ {

View File

@ -148,7 +148,7 @@ class SocksProxy implements RawProxyStreamInterface, BufferedProxyStreamInterfac
* *
* @param int $length Length of data that is going to be written to the write buffer * @param int $length Length of data that is going to be written to the write buffer
* *
* @return \Generator * @return Promise
*/ */
public function getWriteBuffer(int $length, string $append = ''): Promise public function getWriteBuffer(int $length, string $append = ''): Promise
{ {
@ -159,7 +159,7 @@ class SocksProxy implements RawProxyStreamInterface, BufferedProxyStreamInterfac
* *
* @param int $length Length of payload, as detected by this layer * @param int $length Length of payload, as detected by this layer
* *
* @return \Generator * @return Promise
*/ */
public function getReadBuffer(&$length): Promise public function getReadBuffer(&$length): Promise
{ {

View File

@ -121,7 +121,7 @@ class WsStream implements RawStreamInterface, ProxyStreamInterface
/** /**
* {@inheritdoc} * {@inheritdoc}
* *
* @return \Amp\Socket\Socket * @return EncryptableSocket
*/ */
public function getSocket(): EncryptableSocket public function getSocket(): EncryptableSocket
{ {

View File

@ -98,7 +98,7 @@ class TL
/** /**
* Get constructors. * Get constructors.
* *
* @param int $td Whether to get TD or normal methods * @param bool $td
* *
* @return TLConstructors * @return TLConstructors
*/ */
@ -109,7 +109,7 @@ class TL
/** /**
* Get methods. * Get methods.
* *
* @param int $td Whether to get TD or normal methods * @param bool $td
* *
* @return TLMethods * @return TLMethods
*/ */

View File

@ -89,7 +89,7 @@ class APIFactory extends AbstractAPIFactory
* @param string $name Method name * @param string $name Method name
* @param array $arguments Arguments * @param array $arguments Arguments
* *
* @return mixed * @return \Generator
*/ */
public function __call_async(string $name, array $arguments): \Generator public function __call_async(string $name, array $arguments): \Generator
{ {