mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 04:35:12 +01:00
Update baseline
This commit is contained in:
parent
27d21681e7
commit
e7d43be117
@ -244,7 +244,7 @@
|
||||
</MissingClosureParamType>
|
||||
<MissingClosureReturnType>
|
||||
<code><![CDATA[fn ($v) => $v]]></code>
|
||||
<code><![CDATA[fn ($value) => \json_decode($value, true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
<code><![CDATA[fn ($value) => json_decode($value, true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
</MissingClosureReturnType>
|
||||
<MissingConstructor>
|
||||
<code>$dbSettings</code>
|
||||
@ -310,9 +310,9 @@
|
||||
<code>$value</code>
|
||||
</MissingClosureParamType>
|
||||
<MissingClosureReturnType>
|
||||
<code><![CDATA[fn ($v) => \igbinary_unserialize(\hex2bin($v))]]></code>
|
||||
<code><![CDATA[fn ($v) => \unserialize(\hex2bin($v))]]></code>
|
||||
<code><![CDATA[fn ($value) => \json_decode(\hex2bin($value), true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
<code><![CDATA[fn ($v) => igbinary_unserialize(hex2bin($v))]]></code>
|
||||
<code><![CDATA[fn ($v) => unserialize(hex2bin($v))]]></code>
|
||||
<code><![CDATA[fn ($value) => json_decode(hex2bin($value), true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
</MissingClosureReturnType>
|
||||
</file>
|
||||
<file src="src/Db/PostgresArrayBytea.php">
|
||||
@ -329,7 +329,7 @@
|
||||
</MissingClosureParamType>
|
||||
<MissingClosureReturnType>
|
||||
<code><![CDATA[fn ($v) => $v]]></code>
|
||||
<code><![CDATA[fn ($value) => \json_decode($value, true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
<code><![CDATA[fn ($value) => json_decode($value, true, 256, JSON_THROW_ON_ERROR)]]></code>
|
||||
</MissingClosureReturnType>
|
||||
</file>
|
||||
<file src="src/Db/RedisArray.php">
|
||||
@ -391,7 +391,7 @@
|
||||
<code>self::$pluginCache</code>
|
||||
</PropertyTypeCoercion>
|
||||
<RedundantFunctionCall>
|
||||
<code>\array_values</code>
|
||||
<code>array_values</code>
|
||||
</RedundantFunctionCall>
|
||||
<TypeDoesNotContainType>
|
||||
<code><![CDATA[$this->startedInternal]]></code>
|
||||
@ -412,7 +412,7 @@
|
||||
<LessSpecificReturnStatement>
|
||||
<code><![CDATA[$client->wrapMessage($client->extractMessage($result))]]></code>
|
||||
<code><![CDATA[$client->wrapMessage($client->extractMessage($result))]]></code>
|
||||
<code><![CDATA[\array_map(
|
||||
<code><![CDATA[array_map(
|
||||
fn (array $arr): AbstractStory =>
|
||||
$arr['_'] === 'storyItemDeleted'
|
||||
? new StoryDeleted($client, ['peer' => $this->senderId, 'story' => $arr])
|
||||
@ -504,9 +504,6 @@
|
||||
<code><![CDATA[$this->botApiFileUniqueId]]></code>
|
||||
</PossiblyNullArrayAccess>
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>$thumb</code>
|
||||
<code>$thumbHeight</code>
|
||||
<code>$thumbWidth</code>
|
||||
<code>$thumbs</code>
|
||||
<code>$videoThumbs</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
@ -515,90 +512,60 @@
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>AbstractAudio</code>
|
||||
<code>AbstractAudio</code>
|
||||
<code>AbstractAudio</code>
|
||||
<code>AbstractAudio</code>
|
||||
<code>AbstractAudio</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/AbstractSticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>AbstractSticker</code>
|
||||
<code>AbstractSticker</code>
|
||||
<code>AbstractSticker</code>
|
||||
<code>AbstractSticker</code>
|
||||
<code>AbstractSticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/AbstractVideo.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>AbstractVideo</code>
|
||||
<code>AbstractVideo</code>
|
||||
<code>AbstractVideo</code>
|
||||
<code>AbstractVideo</code>
|
||||
<code>AbstractVideo</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/AnimatedSticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>AnimatedSticker</code>
|
||||
<code>AnimatedSticker</code>
|
||||
<code>AnimatedSticker</code>
|
||||
<code>AnimatedSticker</code>
|
||||
<code>AnimatedSticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Audio.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Audio</code>
|
||||
<code>Audio</code>
|
||||
<code>Audio</code>
|
||||
<code>Audio</code>
|
||||
<code>Audio</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/CustomEmoji.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>CustomEmoji</code>
|
||||
<code>CustomEmoji</code>
|
||||
<code>CustomEmoji</code>
|
||||
<code>CustomEmoji</code>
|
||||
<code>CustomEmoji</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Document.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Document</code>
|
||||
<code>Document</code>
|
||||
<code>Document</code>
|
||||
<code>Document</code>
|
||||
<code>Document</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/DocumentPhoto.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>DocumentPhoto</code>
|
||||
<code>DocumentPhoto</code>
|
||||
<code>DocumentPhoto</code>
|
||||
<code>DocumentPhoto</code>
|
||||
<code>DocumentPhoto</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Gif.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Gif</code>
|
||||
<code>Gif</code>
|
||||
<code>Gif</code>
|
||||
<code>Gif</code>
|
||||
<code>Gif</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/MaskSticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>MaskSticker</code>
|
||||
<code>MaskSticker</code>
|
||||
<code>MaskSticker</code>
|
||||
<code>MaskSticker</code>
|
||||
<code>MaskSticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/MediaStory.php">
|
||||
@ -610,63 +577,42 @@
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Photo</code>
|
||||
<code>Photo</code>
|
||||
<code>Photo</code>
|
||||
<code>Photo</code>
|
||||
<code>Photo</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/RoundVideo.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>RoundVideo</code>
|
||||
<code>RoundVideo</code>
|
||||
<code>RoundVideo</code>
|
||||
<code>RoundVideo</code>
|
||||
<code>RoundVideo</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/StaticSticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>StaticSticker</code>
|
||||
<code>StaticSticker</code>
|
||||
<code>StaticSticker</code>
|
||||
<code>StaticSticker</code>
|
||||
<code>StaticSticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Sticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Sticker</code>
|
||||
<code>Sticker</code>
|
||||
<code>Sticker</code>
|
||||
<code>Sticker</code>
|
||||
<code>Sticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Video.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Video</code>
|
||||
<code>Video</code>
|
||||
<code>Video</code>
|
||||
<code>Video</code>
|
||||
<code>Video</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/VideoSticker.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>VideoSticker</code>
|
||||
<code>VideoSticker</code>
|
||||
<code>VideoSticker</code>
|
||||
<code>VideoSticker</code>
|
||||
<code>VideoSticker</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Media/Voice.php">
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>Voice</code>
|
||||
<code>Voice</code>
|
||||
<code>Voice</code>
|
||||
<code>Voice</code>
|
||||
<code>Voice</code>
|
||||
</PropertyNotSetInConstructor>
|
||||
</file>
|
||||
<file src="src/EventHandler/Message.php">
|
||||
@ -768,7 +714,7 @@
|
||||
</file>
|
||||
<file src="src/EventHandler/Privacy.php">
|
||||
<PropertyTypeCoercion>
|
||||
<code><![CDATA[\array_map(RuleDestination::fromRawRule(...), $rawPrivacy['rules'])]]></code>
|
||||
<code><![CDATA[array_map(RuleDestination::fromRawRule(...), $rawPrivacy['rules'])]]></code>
|
||||
</PropertyTypeCoercion>
|
||||
</file>
|
||||
<file src="src/EventHandler/Query/ChatTrait.php">
|
||||
@ -806,7 +752,7 @@
|
||||
</PropertyNotSetInConstructor>
|
||||
<PropertyTypeCoercion>
|
||||
<code><![CDATA[$API->wrapMedia($rawStory['media'], $this->protected)]]></code>
|
||||
<code><![CDATA[\array_map(RuleDestination::fromRawRule(...), $rawStory['privacy'] ?? [])]]></code>
|
||||
<code><![CDATA[array_map(RuleDestination::fromRawRule(...), $rawStory['privacy'] ?? [])]]></code>
|
||||
</PropertyTypeCoercion>
|
||||
</file>
|
||||
<file src="src/EventHandler/Story/StoryReaction.php">
|
||||
@ -821,7 +767,7 @@
|
||||
</file>
|
||||
<file src="src/EventHandler/User/Username.php">
|
||||
<PropertyTypeCoercion>
|
||||
<code><![CDATA[\array_map(
|
||||
<code><![CDATA[array_map(
|
||||
fn (array $username) => new UsernameInfo($username),
|
||||
$rawUserName['usernames']
|
||||
)]]></code>
|
||||
@ -934,7 +880,7 @@
|
||||
<code>logger</code>
|
||||
</PossiblyNullReference>
|
||||
<PossiblyUndefinedArrayOffset>
|
||||
<code><![CDATA[\debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
<code><![CDATA[debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
</PossiblyUndefinedArrayOffset>
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>$logger</code>
|
||||
@ -1071,8 +1017,8 @@
|
||||
<code>$optional</code>
|
||||
</PossiblyInvalidOperand>
|
||||
<PossiblyUndefinedArrayOffset>
|
||||
<code><![CDATA[\debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
<code><![CDATA[\debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
<code><![CDATA[debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
<code><![CDATA[debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
</PossiblyUndefinedArrayOffset>
|
||||
<PropertyNotSetInConstructor>
|
||||
<code>$colors</code>
|
||||
@ -1147,7 +1093,7 @@
|
||||
</file>
|
||||
<file src="src/Loop/Connection/ReadLoop.php">
|
||||
<DocblockTypeContradiction>
|
||||
<code><![CDATA[\str_starts_with($e->getReason(), ' ')]]></code>
|
||||
<code><![CDATA[str_starts_with($e->getReason(), ' ')]]></code>
|
||||
</DocblockTypeContradiction>
|
||||
<InvalidThrow>
|
||||
<code>throw $e;</code>
|
||||
@ -1312,15 +1258,15 @@
|
||||
<code>$callbacks</code>
|
||||
</InvalidArgument>
|
||||
<InvalidReturnStatement>
|
||||
<code><![CDATA[\array_merge(
|
||||
\array_fill_keys(
|
||||
<code><![CDATA[array_merge(
|
||||
array_fill_keys(
|
||||
[
|
||||
'InputUser',
|
||||
'InputChannel',
|
||||
],
|
||||
$this->getInputConstructor(...),
|
||||
),
|
||||
\array_fill_keys(
|
||||
array_fill_keys(
|
||||
[
|
||||
'User',
|
||||
'Chat',
|
||||
@ -1330,7 +1276,7 @@
|
||||
],
|
||||
$this->getInfo(...),
|
||||
),
|
||||
\array_fill_keys(
|
||||
array_fill_keys(
|
||||
[
|
||||
'InputMedia',
|
||||
'InputDocument',
|
||||
@ -1385,7 +1331,7 @@
|
||||
<code>start</code>
|
||||
</PossiblyNullReference>
|
||||
<PossiblyUndefinedArrayOffset>
|
||||
<code><![CDATA[\debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
<code><![CDATA[debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1)[0]['file']]]></code>
|
||||
</PossiblyUndefinedArrayOffset>
|
||||
<PropertyTypeCoercion>
|
||||
<code><![CDATA[$this->sanitizeReportPeers($userOrId)]]></code>
|
||||
@ -1467,7 +1413,7 @@
|
||||
</MissingClosureReturnType>
|
||||
<PossiblyInvalidArgument>
|
||||
<code>$response</code>
|
||||
<code>\time() + $seconds</code>
|
||||
<code>time() + $seconds</code>
|
||||
</PossiblyInvalidArgument>
|
||||
<PossiblyNullArgument>
|
||||
<code>$msgId</code>
|
||||
@ -1483,7 +1429,7 @@
|
||||
<code><![CDATA[$this->API->authorized_dc == $this->datacenter && $this->API->authorized === \danog\MadelineProto\API::LOGGED_IN]]></code>
|
||||
</RedundantConditionGivenDocblockType>
|
||||
<RiskyCast>
|
||||
<code><![CDATA[\preg_replace('/[^0-9]+/', '', $response['error_message'])]]></code>
|
||||
<code><![CDATA[preg_replace('/[^0-9]+/', '', $response['error_message'])]]></code>
|
||||
</RiskyCast>
|
||||
</file>
|
||||
<file src="src/MTProtoSession/Session.php">
|
||||
@ -1831,7 +1777,7 @@
|
||||
</file>
|
||||
<file src="src/Magic.php">
|
||||
<PossiblyUndefinedArrayOffset>
|
||||
<code><![CDATA[\end($backtrace)['file']]]></code>
|
||||
<code><![CDATA[end($backtrace)['file']]]></code>
|
||||
</PossiblyUndefinedArrayOffset>
|
||||
</file>
|
||||
<file src="src/MyTelegramOrgWrapper.php">
|
||||
|
Loading…
Reference in New Issue
Block a user