From 9f5014556495218dcfead2ff0b313a533cb82d17 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Mon, 2 Dec 2024 18:49:03 +0000 Subject: [PATCH] Bump baseline --- README.md | 3 + composer.json | 2 +- docs | 2 +- psalm-baseline.xml | 499 +++++++++++++----- .../Message/Entities/TextWithEntities.php | 8 +- .../Payments/PaymentRequestedInfo.php | 2 + 6 files changed, 378 insertions(+), 138 deletions(-) diff --git a/README.md b/README.md index 5c1815b58..60b366b41 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ Some of MadelineProto's core components are also available as separate, standalo * [danog\MadelineProto\EventHandler\Message\Service\DialogGameScore »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGameScore.html) - Someone scored in a game. * [danog\MadelineProto\EventHandler\Message\Service\DialogGeoProximityReached »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGeoProximityReached.html) - A user of the chat is now in proximity of another user. * [danog\MadelineProto\EventHandler\Message\Service\DialogGiftPremium »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGiftPremium.html) - Info about a gifted Telegram Premium subscription. + * [danog\MadelineProto\EventHandler\Message\Service\DialogGiftStars »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGiftStars.html) - Info about a gifted Telegram Stars. * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall.html) - Represents a service message about a group call. * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCall »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall/GroupCall.html) - The group call has started or ended. * [danog\MadelineProto\EventHandler\Message\Service\DialogGroupCall\GroupCallInvited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogGroupCall/GroupCallInvited.html) - A set of users was invited to the group call. @@ -179,11 +180,13 @@ Some of MadelineProto's core components are also available as separate, standalo * [danog\MadelineProto\EventHandler\Message\Service\DialogSetChatTheme »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetChatTheme.html) - The chat theme was changed. * [danog\MadelineProto\EventHandler\Message\Service\DialogSetChatWallPaper »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetChatWallPaper.html) - The [wallpaper](https://core.telegram.org/api/wallpapers) of the current chat was changed. * [danog\MadelineProto\EventHandler\Message\Service\DialogSetTTL »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSetTTL.html) - The Time-To-Live of messages in this chat was changed. + * [danog\MadelineProto\EventHandler\Message\Service\DialogStarGift »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogStarGift.html) - Info about a Star gifted. * [danog\MadelineProto\EventHandler\Message\Service\DialogSuggestProfilePhoto »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogSuggestProfilePhoto.html) - A new profile picture was suggested using [photos.uploadContactProfilePhoto](https://docs.madelineproto.xyz/API_docs/methods/photos.uploadContactProfilePhoto.html). * [danog\MadelineProto\EventHandler\Message\Service\DialogTitleChanged »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTitleChanged.html) - The title of a channel or group has changed. * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicCreated »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicCreated.html) - A [forum topic](https://core.telegram.org/api/forum#forum-topics) was created. * [danog\MadelineProto\EventHandler\Message\Service\DialogTopicEdited »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogTopicEdited.html) - [Forum topic](https://core.telegram.org/api/forum#forum-topics) information was edited. * [danog\MadelineProto\EventHandler\Message\Service\DialogWebView »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message/Service/DialogWebView.html) - Data from an opened [reply keyboard bot web app](https://core.telegram.org/api/bots/webapps) was relayed to the bot that owns it (user & bot side service message). + * [danog\MadelineProto\EventHandler\Payments\Payment »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Payments/Payment.html) - This object contains information about an incoming pre-checkout query. * [danog\MadelineProto\EventHandler\Pinned »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned.html) - Indicates that some messages were pinned/unpinned. * [danog\MadelineProto\EventHandler\Pinned\PinnedChannelMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedChannelMessages.html) - Represents messages that were pinned/unpinned in a [channel](https://core.telegram.org/api/channel). * [danog\MadelineProto\EventHandler\Pinned\PinnedGroupMessages »](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Pinned/PinnedGroupMessages.html) - Represents messages that were pinned/unpinned in a [chat/supergroup](https://core.telegram.org/api/channel). diff --git a/composer.json b/composer.json index 322b49120..83139d406 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "ext-pthreads": "*" }, "require": { - "php-64bit": ">=8.3", + "php-64bit": ">=8.2", "danog/primemodule": "^1.0.13", "symfony/polyfill-mbstring": "*", "ext-json": "*", diff --git a/docs b/docs index 96efb4a7d..f94e94f9a 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 96efb4a7d8a2769d680ac5d75686306608abb18a +Subproject commit f94e94f9a9f94add50000d0f3d5ae4e7f29cc575 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 43d08ca08..f2e6a20a8 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + @@ -267,9 +267,6 @@ - - $key]]]> - @@ -301,7 +298,6 @@ - @@ -373,7 +369,6 @@ - $key]]]> $session['auth_key']]]]> @@ -382,7 +377,6 @@ - @@ -555,14 +549,11 @@ - - - @@ -586,7 +577,6 @@ - @@ -1582,6 +1572,19 @@ + + + entities]]> + entities]]> + + + getName()]]]> + + + + + + wrapMessage($client->extractMessage($result))]]> @@ -1807,6 +1810,68 @@ viewMessages]]> + + + + + + + + currency]]> + payload]]> + queryId]]> + shippingOptionId]]> + totalAmount]]> + userId]]> + + + getClient()->methodCallAsyncRead( + 'messages.setBotPrecheckoutResults', + [ + 'success' => false, + 'query_id' => $this->queryId, + 'error' => $errorMessage, + ] + )]]> + getClient()->methodCallAsyncRead( + 'messages.setBotPrecheckoutResults', + [ + 'success' => true, + 'query_id' => $this->queryId, + ] + )]]> + + + + + getName()]]]> + + + + + + + + + + + + + + + + + availabilityRemains]]> + availabilityTotal]]> + convertStars]]> + endSell]]> + id]]> + limited]]> + soldOut]]> + stars]]> + startSell]]> + + ids]]> @@ -2313,6 +2378,10 @@ + + + + @@ -2436,6 +2505,9 @@ + + + @@ -2466,7 +2538,6 @@ - @@ -2585,7 +2656,6 @@ - stdoutUnbuffered->getResource()]]> optional]]> optional]]> optional]]> + stdoutUnbuffered->getResource()]]> @@ -2634,9 +2705,6 @@ - - - @@ -3269,8 +3337,6 @@ datacenter]]> - authorization['hint']]]> - authorization['hint']]]> authorization['user'] ?? false]]> authorization['user'] ?? false]]> authorization['user']['bot']]]> @@ -3286,7 +3352,6 @@ ]]> - authorization['hint']]]> authorization['user']['bot']]]> @@ -3304,7 +3369,6 @@ - authorization['hint']]]> authorization['hint']]]> authorization['user']]]> authorization['user']]]> @@ -3347,22 +3411,12 @@ - - - - - - - authKey]]> - id]]> - serverSalt]]> - @@ -3374,7 +3428,47 @@ content[self::RESPONSE_ID_MAP[$this->content['_']]]]]> + + + true, + 'rpc_answer_unknown' => true, + 'rpc_answer_dropped_running' => true, + 'rpc_answer_dropped' => true, + 'get_future_salts' => true, + 'future_salt' => true, + 'future_salts' => true, + 'ping' => true, + 'pong' => true, + 'ping_delay_disconnect' => true, + 'destroy_session' => true, + 'destroy_session_ok' => true, + 'destroy_session_none' => true, + //'new_session_created' => true, + 'msg_container' => true, + 'msg_copy' => true, + 'gzip_packed' => true, + 'http_wait' => true, + 'msgs_ack' => true, + 'bad_msg_notification' => true, + 'bad_server_salt' => true, + 'msgs_state_req' => true, + 'msgs_state_info' => true, + 'msgs_all_info' => true, + 'msg_detailed_info' => true, + 'msg_new_detailed_info' => true, + 'msg_resend_req' => true, + 'msg_resend_ans_req' => true, + ]]]> + + + + + + + + @@ -4031,9 +4125,6 @@ write[$offset]->getFuture()->await($this->cancellation)]]> - - - read[$offset]]]> write[$offset]]]> @@ -4376,6 +4467,8 @@ + + pendingDb]]> @@ -4642,7 +4735,6 @@ - getIdInternal($id)]]> getIdInternal($id)]]> peerDatabase->getFull($partial['bot_api_id'])]]> @@ -4870,6 +4962,8 @@ + + @@ -4879,17 +4973,23 @@ + + + + + + @@ -4948,14 +5048,20 @@ + + + + + + @@ -4964,20 +5070,30 @@ + + + + + + + + + + @@ -4987,6 +5103,7 @@ + @@ -5146,7 +5263,6 @@ getIdInternal($message['action']['from_id'])]]> getIdInternal($message['action']['to_id'])]]> - webhookUrl]]> authorization['user']]]> @@ -5189,6 +5305,9 @@ + + + @@ -5411,6 +5530,105 @@ + + true, + 'BOT_POLLS_DISABLED' => true, + 'PHOTO_THUMB_URL_INVALID' => true, + 'ACTIVE_USER_REQUIRED' => true, + 'PEER_FLOOD' => true, + 'USER_DEACTIVATED_BAN' => true, + 'INPUT_METHOD_INVALID' => true, + 'INPUT_FETCH_ERROR' => true, + 'AUTH_KEY_UNREGISTERED' => true, + 'SESSION_REVOKED' => true, + 'USER_DEACTIVATED' => true, + 'RPC_SEND_FAIL' => true, + 'RPC_CALL_FAIL' => true, + 'RPC_MCGET_FAIL' => true, + 'INTERDC_5_CALL_ERROR' => true, + 'INTERDC_4_CALL_ERROR' => true, + 'INTERDC_3_CALL_ERROR' => true, + 'INTERDC_2_CALL_ERROR' => true, + 'INTERDC_1_CALL_ERROR' => true, + 'INTERDC_5_CALL_RICH_ERROR' => true, + 'INTERDC_4_CALL_RICH_ERROR' => true, + 'INTERDC_3_CALL_RICH_ERROR' => true, + 'INTERDC_2_CALL_RICH_ERROR' => true, + 'INTERDC_1_CALL_RICH_ERROR' => true, + 'AUTH_KEY_DUPLICATED' => true, + 'CONNECTION_NOT_INITED' => true, + 'LOCATION_NOT_AVAILABLE' => true, + 'AUTH_KEY_INVALID' => true, + 'LANG_CODE_EMPTY' => true, + 'memory limit exit' => true, + 'memory limit(?)' => true, + 'INPUT_REQUEST_TOO_LONG' => true, + 'SESSION_PASSWORD_NEEDED' => true, + 'INPUT_FETCH_FAIL' => true, + 'CONNECTION_SYSTEM_EMPTY' => true, + 'FILE_WRITE_FAILED' => true, + 'STORAGE_CHOOSE_VOLUME_FAILED' => true, + 'xxx' => true, + 'AES_DECRYPT_FAILED' => true, + 'Timedout' => true, + 'SEND_REACTION_RESULT1_INVALID' => true, + 'TEMPNAM_FAILED' => true, + 'MSG_WAIT_TIMEOUT' => true, + 'MEMBER_CHAT_ADD_FAILED' => true, + 'CHAT_FROM_CALL_CHANGED' => true, + 'MTPROTO_CLUSTER_INVALID' => true, + 'CONNECTION_DEVICE_MODEL_EMPTY' => true, + 'AUTH_KEY_PERM_EMPTY' => true, + 'UNKNOWN_METHOD' => true, + 'ENCRYPTION_OCCUPY_FAILED' => true, + 'ENCRYPTION_OCCUPY_ADMIN_FAILED' => true, + 'CHAT_OCCUPY_USERNAME_FAILED' => true, + 'REG_ID_GENERATE_FAILED' => true, + 'CONNECTION_LANG_PACK_INVALID' => true, + 'MSGID_DECREASE_RETRY' => true, + 'API_CALL_ERROR' => true, + 'STORAGE_CHECK_FAILED' => true, + 'INPUT_LAYER_INVALID' => true, + 'NEED_MEMBER_INVALID' => true, + 'NEED_CHAT_INVALID' => true, + 'HISTORY_GET_FAILED' => true, + 'CHP_CALL_FAIL' => true, + 'IMAGE_ENGINE_DOWN' => true, + 'MSG_RANGE_UNSYNC' => true, + 'PTS_CHANGE_EMPTY' => true, + 'CONNECTION_SYSTEM_LANG_CODE_EMPTY' => true, + 'WORKER_BUSY_TOO_LONG_RETRY' => true, + 'WP_ID_GENERATE_FAILED' => true, + 'ARR_CAS_FAILED' => true, + 'CHANNEL_ADD_INVALID' => true, + 'CHANNEL_ADMINS_INVALID' => true, + 'CHAT_OCCUPY_LOC_FAILED' => true, + 'GROUPED_ID_OCCUPY_FAILED' => true, + 'GROUPED_ID_OCCUPY_FAULED' => true, + 'LOG_WRAP_FAIL' => true, + 'MEMBER_FETCH_FAILED' => true, + 'MEMBER_OCCUPY_PRIMARY_LOC_FAILED' => true, + 'MEMBER_NO_LOCATION' => true, + 'MEMBER_OCCUPY_USERNAME_FAILED' => true, + 'MT_SEND_QUEUE_TOO_LONG' => true, + 'POSTPONED_TIMEOUT' => true, + 'RPC_CONNECT_FAILED' => true, + 'SHORTNAME_OCCUPY_FAILED' => true, + 'STORE_INVALID_OBJECT_TYPE' => true, + 'STORE_INVALID_SCALAR_TYPE' => true, + 'TMSG_ADD_FAILED' => true, + 'UNKNOWN_ERROR' => true, + 'UPLOAD_NO_VOLUME' => true, + 'USER_NOT_AVAILABLE' => true, + 'VOLUME_LOC_NOT_FOUND' => true, + 'FILE_WRITE_EMPTY' => true, + 'Internal_Server_Error' => true, + 'INVITE_HASH_UNSYNC' => true, + 'CHANNEL_ID_GENERATE_FAILED' => true, + 'Invalid msgs_state_req query' => true, + ]]]> + @@ -5524,6 +5742,7 @@ + remoteLayer === 8]]> @@ -5846,6 +6065,9 @@ + + + @@ -6267,34 +6489,24 @@ - + extra['address']]]> extra['port']]]> - - - - - - - - - - - - - - bufferRead(1)]]> - extra['address']]]> extra['password']]]> extra['port']]]> extra['username']]]> + + + + bufferRead(1)]]> + @@ -6308,11 +6520,6 @@ getStream()]]> - - - - - @@ -6325,6 +6532,26 @@ + extra['password']]]> + extra['username']]]> + + + extra['address']]]> + extra['password']]]> + extra['port']]]> + extra['username']]]> + + + + + + + extra['address']]]> + extra['password']]]> + extra['port']]]> + extra['username']]]> + + bufferRead(1)]]> bufferRead(1)]]> bufferRead(1)]]> @@ -6337,98 +6564,27 @@ bufferRead(16)]]> bufferRead(2)]]> bufferRead(4)]]> - extra['password']]]> - extra['username']]]> - - - extra['address']]]> - extra['password']]]> - extra['port']]]> - extra['username']]]> - - - - - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - extra['address']]]> - extra['password']]]> - extra['port']]]> - extra['username']]]> - + getStream(\chr(5).\chr(\strlen($methods)).$methods)]]> - - - - - - - - - - - - - - - - - - stream]]> - - - stream]]> - - - stream]]> - - - - - - stream]]> - @@ -6780,6 +6936,11 @@ + + + [0 => 'image/webp'], 'png' => [0 => 'image/png', 1 => 'image/x-png'], 'bmp' => [0 => 'image/bmp', 1 => 'image/x-bmp', 2 => 'image/x-bitmap', 3 => 'image/x-xbitmap', 4 => 'image/x-win-bitmap', 5 => 'image/x-windows-bmp', 6 => 'image/ms-bmp', 7 => 'image/x-ms-bmp', 8 => 'application/bmp', 9 => 'application/x-bmp', 10 => 'application/x-win-bitmap'], 'gif' => [0 => 'image/gif'], 'jpeg' => [0 => 'image/jpeg', 1 => 'image/pjpeg'], 'xspf' => [0 => 'application/xspf+xml'], 'vlc' => [0 => 'application/videolan'], 'wmv' => [0 => 'video/x-ms-wmv', 1 => 'video/x-ms-asf'], 'au' => [0 => 'audio/x-au'], 'ac3' => [0 => 'audio/ac3'], 'flac' => [0 => 'audio/x-flac'], 'ogg' => [0 => 'audio/ogg', 1 => 'video/ogg', 2 => 'application/ogg'], 'kmz' => [0 => 'application/vnd.google-earth.kmz'], 'kml' => [0 => 'application/vnd.google-earth.kml+xml'], 'rtx' => [0 => 'text/richtext'], 'rtf' => [0 => 'text/rtf'], 'jar' => [0 => 'application/java-archive', 1 => 'application/x-java-application', 2 => 'application/x-jar'], 'zip' => [0 => 'application/x-zip', 1 => 'application/zip', 2 => 'application/x-zip-compressed', 3 => 'application/s-compressed', 4 => 'multipart/x-zip'], '7zip' => [0 => 'application/x-compressed'], 'xml' => [0 => 'application/xml', 1 => 'text/xml'], 'svg' => [0 => 'image/svg+xml'], '3g2' => [0 => 'video/3gpp2'], '3gp' => [0 => 'video/3gp', 1 => 'video/3gpp'], 'mp4' => [0 => 'video/mp4'], 'm4a' => [0 => 'audio/x-m4a'], 'f4v' => [0 => 'video/x-f4v'], 'flv' => [0 => 'video/x-flv'], 'webm' => [0 => 'video/webm'], 'aac' => [0 => 'audio/x-acc'], 'm4u' => [0 => 'application/vnd.mpegurl'], 'pdf' => [0 => 'application/pdf', 1 => 'application/octet-stream'], 'pptx' => [0 => 'application/vnd.openxmlformats-officedocument.presentationml.presentation'], 'ppt' => [0 => 'application/powerpoint', 1 => 'application/vnd.ms-powerpoint', 2 => 'application/vnd.ms-office', 3 => 'application/msword'], 'docx' => [0 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'], 'xlsx' => [0 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 1 => 'application/vnd.ms-excel'], 'xl' => [0 => 'application/excel'], 'xls' => [0 => 'application/msexcel', 1 => 'application/x-msexcel', 2 => 'application/x-ms-excel', 3 => 'application/x-excel', 4 => 'application/x-dos_ms_excel', 5 => 'application/xls', 6 => 'application/x-xls'], 'xsl' => [0 => 'text/xsl'], 'mpeg' => [0 => 'video/mpeg'], 'mov' => [0 => 'video/quicktime'], 'avi' => [0 => 'video/x-msvideo', 1 => 'video/msvideo', 2 => 'video/avi', 3 => 'application/x-troff-msvideo'], 'movie' => [0 => 'video/x-sgi-movie'], 'log' => [0 => 'text/x-log'], 'txt' => [0 => 'text/plain'], 'css' => [0 => 'text/css'], 'html' => [0 => 'text/html'], 'wav' => [0 => 'audio/x-wav', 1 => 'audio/wave', 2 => 'audio/wav'], 'xhtml' => [0 => 'application/xhtml+xml'], 'tar' => [0 => 'application/x-tar'], 'tgz' => [0 => 'application/x-gzip-compressed'], 'psd' => [0 => 'application/x-photoshop', 1 => 'image/vnd.adobe.photoshop'], 'exe' => [0 => 'application/x-msdownload'], 'js' => [0 => 'application/x-javascript'], 'mp3' => [0 => 'audio/mpeg', 1 => 'audio/mpg', 2 => 'audio/mpeg3', 3 => 'audio/mp3'], 'rar' => [0 => 'application/x-rar', 1 => 'application/rar', 2 => 'application/x-rar-compressed'], 'gzip' => [0 => 'application/x-gzip'], 'hqx' => [0 => 'application/mac-binhex40', 1 => 'application/mac-binhex', 2 => 'application/x-binhex40', 3 => 'application/x-mac-binhex40'], 'cpt' => [0 => 'application/mac-compactpro'], 'bin' => [0 => 'application/macbinary', 1 => 'application/mac-binary', 2 => 'application/x-binary', 3 => 'application/x-macbinary'], 'oda' => [0 => 'application/oda'], 'ai' => [0 => 'application/postscript'], 'smil' => [0 => 'application/smil'], 'mif' => [0 => 'application/vnd.mif'], 'wbxml' => [0 => 'application/wbxml'], 'wmlc' => [0 => 'application/wmlc'], 'dcr' => [0 => 'application/x-director'], 'dvi' => [0 => 'application/x-dvi'], 'gtar' => [0 => 'application/x-gtar'], 'php' => [0 => 'application/x-httpd-php', 1 => 'application/php', 2 => 'application/x-php', 3 => 'text/php', 4 => 'text/x-php', 5 => 'application/x-httpd-php-source'], 'swf' => [0 => 'application/x-shockwave-flash'], 'sit' => [0 => 'application/x-stuffit'], 'z' => [0 => 'application/x-compress'], 'mid' => [0 => 'audio/midi'], 'aif' => [0 => 'audio/x-aiff', 1 => 'audio/aiff'], 'ram' => [0 => 'audio/x-pn-realaudio'], 'rpm' => [0 => 'audio/x-pn-realaudio-plugin'], 'ra' => [0 => 'audio/x-realaudio'], 'rv' => [0 => 'video/vnd.rn-realvideo'], 'jp2' => [0 => 'image/jp2', 1 => 'video/mj2', 2 => 'image/jpx', 3 => 'image/jpm'], 'tiff' => [0 => 'image/tiff'], 'eml' => [0 => 'message/rfc822'], 'pem' => [0 => 'application/x-x509-user-cert', 1 => 'application/x-pem-file'], 'p10' => [0 => 'application/x-pkcs10', 1 => 'application/pkcs10'], 'p12' => [0 => 'application/x-pkcs12'], 'p7a' => [0 => 'application/x-pkcs7-signature'], 'p7c' => [0 => 'application/pkcs7-mime', 1 => 'application/x-pkcs7-mime'], 'p7r' => [0 => 'application/x-pkcs7-certreqresp'], 'p7s' => [0 => 'application/pkcs7-signature'], 'crt' => [0 => 'application/x-x509-ca-cert', 1 => 'application/pkix-cert'], 'crl' => [0 => 'application/pkix-crl', 1 => 'application/pkcs-crl'], 'pgp' => [0 => 'application/pgp'], 'gpg' => [0 => 'application/gpg-keys'], 'rsa' => [0 => 'application/x-pkcs7'], 'ics' => [0 => 'text/calendar'], 'zsh' => [0 => 'text/x-scriptzsh'], 'cdr' => [0 => 'application/cdr', 1 => 'application/coreldraw', 2 => 'application/x-cdr', 3 => 'application/x-coreldraw', 4 => 'image/cdr', 5 => 'image/x-cdr', 6 => 'zz-application/zz-winassoc-cdr'], 'wma' => [0 => 'audio/x-ms-wma'], 'vcf' => [0 => 'text/x-vcard'], 'srt' => [0 => 'text/srt'], 'vtt' => [0 => 'text/vtt'], 'ico' => [0 => 'image/x-icon', 1 => 'image/x-ico', 2 => 'image/vnd.microsoft.icon'], 'csv' => [0 => 'text/x-comma-separated-values', 1 => 'text/comma-separated-values', 2 => 'application/vnd.msexcel'], 'json' => [0 => 'application/json', 1 => 'text/json']]]]> + + @@ -7419,6 +7580,79 @@ + + + 'https://github.com/amphp/mysql', + 'mysqli' => 'https://github.com/amphp/mysql', + ]]]> + 'https://github.com/amphp/file, https://github.com/amphp/http-client or $this->fileGetContents()', + 'file_put_contents' => 'https://github.com/amphp/file', + 'curl_exec' => 'https://github.com/amphp/http-client', + 'mysqli_query' => 'https://github.com/amphp/mysql', + 'mysqli_connect' => 'https://github.com/amphp/mysql', + 'mysql_connect' => 'https://github.com/amphp/mysql', + 'fopen' => 'https://github.com/amphp/file', + 'fsockopen' => 'https://github.com/amphp/socket', + 'pcntl_fork' => 'Tools::callFork', + 'sleep' => '$this->sleep()', + 'usleep' => '$this->sleep()', + 'proc_open' => 'https://github.com/amphp/process', + 'shell_exec' => 'https://github.com/amphp/process', + 'exec' => 'https://github.com/amphp/process', + ]]]> + 'Amp\\File\\read', + 'amp\\file\\put' => 'Amp\\File\\write', + ]]]> + + + + @@ -7452,9 +7686,6 @@ - - - $this->{$var}, diff --git a/src/EventHandler/Message/Entities/TextWithEntities.php b/src/EventHandler/Message/Entities/TextWithEntities.php index 90ea7398b..5eaa03ea0 100644 --- a/src/EventHandler/Message/Entities/TextWithEntities.php +++ b/src/EventHandler/Message/Entities/TextWithEntities.php @@ -19,18 +19,22 @@ namespace danog\MadelineProto\EventHandler\Message\Entities; use danog\MadelineProto\ParseMode; use danog\MadelineProto\StrTools; use JsonSerializable; +use ReflectionClass; +use ReflectionProperty; final class TextWithEntities implements JsonSerializable { public function __construct( /** Text */ public readonly string $text, - /** Message entities for styled text */ + /** + * Message entities for styled text. + * @var list + */ public readonly array $entities, /** Whether to parse HTML or Markdown markup in the message */ public readonly ?ParseMode $parseMode, ) { - } /** @internal */ diff --git a/src/EventHandler/Payments/PaymentRequestedInfo.php b/src/EventHandler/Payments/PaymentRequestedInfo.php index 160a015f3..cfc48380e 100644 --- a/src/EventHandler/Payments/PaymentRequestedInfo.php +++ b/src/EventHandler/Payments/PaymentRequestedInfo.php @@ -3,6 +3,8 @@ namespace danog\MadelineProto\EventHandler\Payments; use JsonSerializable; +use ReflectionClass; +use ReflectionProperty; final class PaymentRequestedInfo implements JsonSerializable {