From c612fea9e5218228a11b6d8e036af5923596cfa2 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Sun, 19 Mar 2023 21:22:30 +0100 Subject: [PATCH 01/10] TelegramTypes: added ForumTopicCreated, ForumTopicClosed, ForumTopicEdited and ForumTopicReopened --- src/Telegram/Types/ForumTopicClosed.php | 18 ++++++++++++ src/Telegram/Types/ForumTopicCreated.php | 35 +++++++++++++++++++++++ src/Telegram/Types/ForumTopicEdited.php | 30 +++++++++++++++++++ src/Telegram/Types/ForumTopicReopened.php | 18 ++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 src/Telegram/Types/ForumTopicClosed.php create mode 100644 src/Telegram/Types/ForumTopicCreated.php create mode 100644 src/Telegram/Types/ForumTopicEdited.php create mode 100644 src/Telegram/Types/ForumTopicReopened.php diff --git a/src/Telegram/Types/ForumTopicClosed.php b/src/Telegram/Types/ForumTopicClosed.php new file mode 100644 index 0000000..de57a90 --- /dev/null +++ b/src/Telegram/Types/ForumTopicClosed.php @@ -0,0 +1,18 @@ + Date: Sun, 19 Mar 2023 21:46:20 +0100 Subject: [PATCH 02/10] TelegramTypes: updated types and mappings for Chat and Message --- src/Telegram/Types/Chat.php | 5 ++++ src/Telegram/Types/Message.php | 48 ++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/src/Telegram/Types/Chat.php b/src/Telegram/Types/Chat.php index 9d1909b..c99c68f 100644 --- a/src/Telegram/Types/Chat.php +++ b/src/Telegram/Types/Chat.php @@ -53,6 +53,11 @@ class Chat extends TelegramTypes */ public $last_name = ''; + /** + * Optional. True, if the supergroup chat is a forum (has topics enabled) + */ + public $is_forum = false; + /** * Optional. Chat photo. Returned only in {@see getChat} * @var ChatPhoto diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index f65d25d..9cada6b 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -26,6 +26,12 @@ class Message extends TelegramTypes */ public $message_id = 0; + /** + * Optional. Unique identifier of a message thread to which the message belongs; for supergroups only + * @var int + */ + public $message_thread_id = 0; + /** * Optional. Sender, can be empty for messages sent to channels * @var User @@ -89,6 +95,16 @@ class Message extends TelegramTypes */ public $forward_date = 0; + /** + * Optional. True, if the message is sent to a forum topic + */ + public $is_topic_message = false; + + /** + * @var bool + */ + public $is_automatic_forward = false; + /** * Optional. For replies, the original message. Note that the Message object in this field will not contain further * reply_to_message fields even if it itself is a reply. @@ -343,6 +359,30 @@ class Message extends TelegramTypes */ public $proximity_alert_triggered; + /** + * Optional. Service message: forum topic created + * @var ForumTopicCreated + */ + public $forum_topic_created; + + /** + * Optional. Service message: forum topic edited + * @var ForumTopicEdited + */ + public $forum_topic_edited; + + /** + * Optional. Service message: forum topic closed + * @var ForumTopicClosed + */ + public $forum_topic_closed; + + /** + * Optional. Service message: forum topic reopened + * @var ForumTopicReopened + */ + public $forum_topic_reopened; + /** * @var Markup */ @@ -413,6 +453,14 @@ protected function mapSubObjects(string $key, array $data): TelegramTypes return new Markup($data, $this->logger); case 'proximity_alert_triggered': return new ProximityAlertTriggered($data, $this->logger); + case 'forum_topic_created': + return new ForumTopicCreated($data, $this->logger); + case 'forum_topic_edited': + return new ForumTopicEdited($data, $this->logger); + case 'forum_topic_closed': + return new ForumTopicClosed($data, $this->logger); + case 'forum_topic_reopened': + return new ForumTopicReopened($data, $this->logger); } // Return always null if none of the objects above matches From 086df4706c4b98e11b31ac7e8b55cdbcdb989a85 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Thu, 13 Apr 2023 20:10:41 +0200 Subject: [PATCH 03/10] Composer: changed PHP version to >=7.1, updated PHPUnit libs to ^10.0, updated composer.lock --- composer.json | 8 +- composer.lock | 1913 +++++++++++++++++++++++++------------------------ 2 files changed, 961 insertions(+), 960 deletions(-) diff --git a/composer.json b/composer.json index 0e49548..53f70dc 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } ], "require": { - "php": ">=7.0.0", + "php": ">=7.1", "ext-json": "*", "unreal4u/dummy-logger": "^1.0", "react/promise": "^2.7", @@ -26,9 +26,9 @@ }, "require-dev": { "monolog/monolog": "^1.17", - "squizlabs/php_codesniffer": "^3.5", - "phpunit/phpunit": "^6.2", - "phpunit/php-code-coverage": "^5.2" + "squizlabs/php_codesniffer": "^3.7", + "phpunit/phpunit": "^10.0", + "phpunit/php-code-coverage": "^10.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 36e9e7c..abbfea3 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "174f3d66b7d7e9c936d4372023c33e89", + "content-hash": "4e1726081aee17f8ebe7cf168a7ed17b", "packages": [ { "name": "amphp/amp", - "version": "v2.6.1", + "version": "v2.6.2", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae" + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", - "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", + "url": "https://api.github.com/repos/amphp/amp/zipball/9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", "shasum": "" }, "require": { @@ -39,13 +39,13 @@ } }, "autoload": { - "psr-4": { - "Amp\\": "lib" - }, "files": [ "lib/functions.php", "lib/Internal/functions.php" - ] + ], + "psr-4": { + "Amp\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -70,7 +70,7 @@ } ], "description": "A non-blocking concurrency framework for PHP applications.", - "homepage": "http://amphp.org/amp", + "homepage": "https://amphp.org/amp", "keywords": [ "async", "asynchronous", @@ -85,7 +85,7 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.6.1" + "source": "https://github.com/amphp/amp/tree/v2.6.2" }, "funding": [ { @@ -93,7 +93,7 @@ "type": "github" } ], - "time": "2021-09-23T18:43:08+00:00" + "time": "2022-02-20T17:52:18+00:00" }, { "name": "amphp/artax", @@ -193,12 +193,12 @@ } }, "autoload": { - "psr-4": { - "Amp\\ByteStream\\": "lib" - }, "files": [ "lib/functions.php" - ] + ], + "psr-4": { + "Amp\\ByteStream\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -333,12 +333,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Dns\\": "lib" - }, "files": [ "lib/functions.php" - ] + ], + "psr-4": { + "Amp\\Dns\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -408,12 +408,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\File\\": "lib" - }, "files": [ "lib/functions.php" - ] + ], + "psr-4": { + "Amp\\File\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -454,16 +454,16 @@ }, { "name": "amphp/parallel", - "version": "v1.4.1", + "version": "v1.4.3", "source": { "type": "git", "url": "https://github.com/amphp/parallel.git", - "reference": "fbc128383c1ffb3823866f71b88d8c4722a25ce9" + "reference": "3aac213ba7858566fd83d38ccb85b91b2d652cb0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/parallel/zipball/fbc128383c1ffb3823866f71b88d8c4722a25ce9", - "reference": "fbc128383c1ffb3823866f71b88d8c4722a25ce9", + "url": "https://api.github.com/repos/amphp/parallel/zipball/3aac213ba7858566fd83d38ccb85b91b2d652cb0", + "reference": "3aac213ba7858566fd83d38ccb85b91b2d652cb0", "shasum": "" }, "require": { @@ -482,14 +482,14 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Parallel\\": "lib" - }, "files": [ "lib/Context/functions.php", "lib/Sync/functions.php", "lib/Worker/functions.php" - ] + ], + "psr-4": { + "Amp\\Parallel\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -516,7 +516,7 @@ ], "support": { "issues": "https://github.com/amphp/parallel/issues", - "source": "https://github.com/amphp/parallel/tree/v1.4.1" + "source": "https://github.com/amphp/parallel/tree/v1.4.3" }, "funding": [ { @@ -524,33 +524,34 @@ "type": "github" } ], - "time": "2021-10-25T19:16:02+00:00" + "time": "2023-03-23T08:04:23+00:00" }, { "name": "amphp/parser", - "version": "v1.0.0", + "version": "v1.1.0", "source": { "type": "git", "url": "https://github.com/amphp/parser.git", - "reference": "f83e68f03d5b8e8e0365b8792985a7f341c57ae1" + "reference": "ff1de4144726c5dad5fab97f66692ebe8de3e151" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/parser/zipball/f83e68f03d5b8e8e0365b8792985a7f341c57ae1", - "reference": "f83e68f03d5b8e8e0365b8792985a7f341c57ae1", + "url": "https://api.github.com/repos/amphp/parser/zipball/ff1de4144726c5dad5fab97f66692ebe8de3e151", + "reference": "ff1de4144726c5dad5fab97f66692ebe8de3e151", "shasum": "" }, "require": { - "php": ">=7" + "php": ">=7.4" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.3", - "phpunit/phpunit": "^6" + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^9", + "psalm/phar": "^5.4" }, "type": "library", "autoload": { "psr-4": { - "Amp\\Parser\\": "lib" + "Amp\\Parser\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -558,13 +559,13 @@ "MIT" ], "authors": [ - { - "name": "Niklas Keller", - "email": "me@kelunik.com" - }, { "name": "Aaron Piotrowski", "email": "aaron@trowski.com" + }, + { + "name": "Niklas Keller", + "email": "me@kelunik.com" } ], "description": "A generator parser to make streaming parsers simple.", @@ -577,22 +578,28 @@ ], "support": { "issues": "https://github.com/amphp/parser/issues", - "source": "https://github.com/amphp/parser/tree/is-valid" + "source": "https://github.com/amphp/parser/tree/v1.1.0" }, - "time": "2017-06-06T05:29:10+00:00" + "funding": [ + { + "url": "https://github.com/amphp", + "type": "github" + } + ], + "time": "2022-12-30T18:08:47+00:00" }, { "name": "amphp/process", - "version": "v1.1.3", + "version": "v1.1.4", "source": { "type": "git", "url": "https://github.com/amphp/process.git", - "reference": "f09e3ed3b0a953ccbfff1140f12be4a884f0aa83" + "reference": "76e9495fd6818b43a20167cb11d8a67f7744ee0f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/process/zipball/f09e3ed3b0a953ccbfff1140f12be4a884f0aa83", - "reference": "f09e3ed3b0a953ccbfff1140f12be4a884f0aa83", + "url": "https://api.github.com/repos/amphp/process/zipball/76e9495fd6818b43a20167cb11d8a67f7744ee0f", + "reference": "76e9495fd6818b43a20167cb11d8a67f7744ee0f", "shasum": "" }, "require": { @@ -607,12 +614,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Process\\": "lib" - }, "files": [ "lib/functions.php" - ] + ], + "psr-4": { + "Amp\\Process\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -636,7 +643,7 @@ "homepage": "https://github.com/amphp/process", "support": { "issues": "https://github.com/amphp/process/issues", - "source": "https://github.com/amphp/process/tree/v1.1.3" + "source": "https://github.com/amphp/process/tree/v1.1.4" }, "funding": [ { @@ -644,7 +651,7 @@ "type": "github" } ], - "time": "2021-12-17T19:09:33+00:00" + "time": "2022-07-06T23:50:12+00:00" }, { "name": "amphp/serialization", @@ -669,12 +676,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Serialization\\": "src" - }, "files": [ "src/functions.php" - ] + ], + "psr-4": { + "Amp\\Serialization\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -732,13 +739,13 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Socket\\": "src" - }, "files": [ "src/functions.php", "src/Internal/functions.php" - ] + ], + "psr-4": { + "Amp\\Socket\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -800,13 +807,13 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Sync\\": "src" - }, "files": [ "src/functions.php", "src/ConcurrentIterator/functions.php" - ] + ], + "psr-4": { + "Amp\\Sync\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -863,12 +870,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Amp\\Uri\\": "src" - }, "files": [ "src/functions.php" - ] + ], + "psr-4": { + "Amp\\Uri\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1008,20 +1015,21 @@ "type": "github" } ], + "abandoned": "react/async", "time": "2021-10-20T14:07:33+00:00" }, { "name": "daverandom/libdns", - "version": "v2.0.2", + "version": "v2.0.3", "source": { "type": "git", "url": "https://github.com/DaveRandom/LibDNS.git", - "reference": "e8b6d6593d18ac3a6a14666d8a68a4703b2e05f9" + "reference": "42c2d700d1178c9f9e78664793463f7f1aea248c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/DaveRandom/LibDNS/zipball/e8b6d6593d18ac3a6a14666d8a68a4703b2e05f9", - "reference": "e8b6d6593d18ac3a6a14666d8a68a4703b2e05f9", + "url": "https://api.github.com/repos/DaveRandom/LibDNS/zipball/42c2d700d1178c9f9e78664793463f7f1aea248c", + "reference": "42c2d700d1178c9f9e78664793463f7f1aea248c", "shasum": "" }, "require": { @@ -1033,12 +1041,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "LibDNS\\": "src/" - }, "files": [ "src/functions.php" - ] + ], + "psr-4": { + "LibDNS\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1050,9 +1058,9 @@ ], "support": { "issues": "https://github.com/DaveRandom/LibDNS/issues", - "source": "https://github.com/DaveRandom/LibDNS/tree/v2.0.2" + "source": "https://github.com/DaveRandom/LibDNS/tree/v2.0.3" }, - "time": "2019-12-03T09:12:46+00:00" + "time": "2022-09-20T18:15:38+00:00" }, { "name": "evenement/evenement", @@ -1101,32 +1109,93 @@ }, "time": "2017-07-23T21:35:13+00:00" }, + { + "name": "fig/http-message-util", + "version": "1.1.5", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message-util.git", + "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message-util/zipball/9d94dc0154230ac39e5bf89398b324a86f63f765", + "reference": "9d94dc0154230ac39e5bf89398b324a86f63f765", + "shasum": "" + }, + "require": { + "php": "^5.3 || ^7.0 || ^8.0" + }, + "suggest": { + "psr/http-message": "The package containing the PSR-7 interfaces" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Fig\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Utility classes and constants for use with PSR-7 (psr/http-message)", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "issues": "https://github.com/php-fig/http-message-util/issues", + "source": "https://github.com/php-fig/http-message-util/tree/1.1.5" + }, + "time": "2020-11-24T22:02:12+00:00" + }, { "name": "kelunik/certificate", - "version": "v1.1.2", + "version": "v1.1.3", "source": { "type": "git", "url": "https://github.com/kelunik/certificate.git", - "reference": "56542e62d51533d04d0a9713261fea546bff80f6" + "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kelunik/certificate/zipball/56542e62d51533d04d0a9713261fea546bff80f6", - "reference": "56542e62d51533d04d0a9713261fea546bff80f6", + "url": "https://api.github.com/repos/kelunik/certificate/zipball/7e00d498c264d5eb4f78c69f41c8bd6719c0199e", + "reference": "7e00d498c264d5eb4f78c69f41c8bd6719c0199e", "shasum": "" }, "require": { "ext-openssl": "*", - "php": ">=5.4" + "php": ">=7.0" }, "require-dev": { - "fabpot/php-cs-fixer": "^1.9", - "phpunit/phpunit": "^4.8" + "amphp/php-cs-fixer-config": "^2", + "phpunit/phpunit": "^6 | 7 | ^8 | ^9" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, "autoload": { "psr-4": { - "Kelunik\\Certificate\\": "lib" + "Kelunik\\Certificate\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1150,9 +1219,9 @@ ], "support": { "issues": "https://github.com/kelunik/certificate/issues", - "source": "https://github.com/kelunik/certificate/tree/v1.1.2" + "source": "https://github.com/kelunik/certificate/tree/v1.1.3" }, - "time": "2019-05-29T19:02:31+00:00" + "time": "2023-02-03T21:26:53+00:00" }, { "name": "lucadevelop/telegram-entities-decoder", @@ -1197,25 +1266,25 @@ }, { "name": "psr/http-message", - "version": "1.0.1", + "version": "1.1", "source": { "type": "git", "url": "https://github.com/php-fig/http-message.git", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", - "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", + "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -1244,9 +1313,9 @@ "response" ], "support": { - "source": "https://github.com/php-fig/http-message/tree/master" + "source": "https://github.com/php-fig/http-message/tree/1.1" }, - "time": "2016-08-06T14:39:51+00:00" + "time": "2023-04-04T09:50:52+00:00" }, { "name": "psr/log", @@ -1300,16 +1369,16 @@ }, { "name": "react/cache", - "version": "v1.1.1", + "version": "v1.2.0", "source": { "type": "git", "url": "https://github.com/reactphp/cache.git", - "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e" + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/cache/zipball/4bf736a2cccec7298bdf745db77585966fc2ca7e", - "reference": "4bf736a2cccec7298bdf745db77585966fc2ca7e", + "url": "https://api.github.com/repos/reactphp/cache/zipball/d47c472b64aa5608225f47965a484b75c7817d5b", + "reference": "d47c472b64aa5608225f47965a484b75c7817d5b", "shasum": "" }, "require": { @@ -1317,7 +1386,7 @@ "react/promise": "^3.0 || ^2.0 || ^1.1" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^9.5 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { @@ -1360,32 +1429,28 @@ ], "support": { "issues": "https://github.com/reactphp/cache/issues", - "source": "https://github.com/reactphp/cache/tree/v1.1.1" + "source": "https://github.com/reactphp/cache/tree/v1.2.0" }, "funding": [ { - "url": "https://github.com/WyriHaximus", - "type": "github" - }, - { - "url": "https://github.com/clue", - "type": "github" + "url": "https://opencollective.com/reactphp", + "type": "open_collective" } ], - "time": "2021-02-02T06:47:52+00:00" + "time": "2022-11-30T15:59:55+00:00" }, { "name": "react/dns", - "version": "v1.9.0", + "version": "v1.10.0", "source": { "type": "git", "url": "https://github.com/reactphp/dns.git", - "reference": "6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb" + "reference": "a5427e7dfa47713e438016905605819d101f238c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/dns/zipball/6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb", - "reference": "6d38296756fa644e6cb1bfe95eff0f9a4ed6edcb", + "url": "https://api.github.com/repos/reactphp/dns/zipball/a5427e7dfa47713e438016905605819d101f238c", + "reference": "a5427e7dfa47713e438016905605819d101f238c", "shasum": "" }, "require": { @@ -1393,11 +1458,11 @@ "react/cache": "^1.0 || ^0.6 || ^0.5", "react/event-loop": "^1.2", "react/promise": "^3.0 || ^2.7 || ^1.2.1", - "react/promise-timer": "^1.8" + "react/promise-timer": "^1.9" }, "require-dev": { - "clue/block-react": "^1.2", - "phpunit/phpunit": "^9.3 || ^4.8.35" + "phpunit/phpunit": "^9.3 || ^4.8.35", + "react/async": "^4 || ^3 || ^2" }, "type": "library", "autoload": { @@ -1440,7 +1505,7 @@ ], "support": { "issues": "https://github.com/reactphp/dns/issues", - "source": "https://github.com/reactphp/dns/tree/v1.9.0" + "source": "https://github.com/reactphp/dns/tree/v1.10.0" }, "funding": [ { @@ -1452,20 +1517,20 @@ "type": "github" } ], - "time": "2021-12-20T08:46:54+00:00" + "time": "2022-09-08T12:22:46+00:00" }, { "name": "react/event-loop", - "version": "v1.2.0", + "version": "v1.3.0", "source": { "type": "git", "url": "https://github.com/reactphp/event-loop.git", - "reference": "be6dee480fc4692cec0504e65eb486e3be1aa6f2" + "reference": "187fb56f46d424afb6ec4ad089269c72eec2e137" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/event-loop/zipball/be6dee480fc4692cec0504e65eb486e3be1aa6f2", - "reference": "be6dee480fc4692cec0504e65eb486e3be1aa6f2", + "url": "https://api.github.com/repos/reactphp/event-loop/zipball/187fb56f46d424afb6ec4ad089269c72eec2e137", + "reference": "187fb56f46d424afb6ec4ad089269c72eec2e137", "shasum": "" }, "require": { @@ -1518,7 +1583,7 @@ ], "support": { "issues": "https://github.com/reactphp/event-loop/issues", - "source": "https://github.com/reactphp/event-loop/tree/v1.2.0" + "source": "https://github.com/reactphp/event-loop/tree/v1.3.0" }, "funding": [ { @@ -1530,39 +1595,41 @@ "type": "github" } ], - "time": "2021-07-11T12:31:24+00:00" + "time": "2022-03-17T11:10:22+00:00" }, { "name": "react/http", - "version": "v1.5.0", + "version": "v1.8.0", "source": { "type": "git", "url": "https://github.com/reactphp/http.git", - "reference": "8a0fd7c0aa74f0db3008b1e47ca86c613cbb040e" + "reference": "aa7512ee17258c88466de30f9cb44ec5f9df3ff3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/http/zipball/8a0fd7c0aa74f0db3008b1e47ca86c613cbb040e", - "reference": "8a0fd7c0aa74f0db3008b1e47ca86c613cbb040e", + "url": "https://api.github.com/repos/reactphp/http/zipball/aa7512ee17258c88466de30f9cb44ec5f9df3ff3", + "reference": "aa7512ee17258c88466de30f9cb44ec5f9df3ff3", "shasum": "" }, "require": { "evenement/evenement": "^3.0 || ^2.0 || ^1.0", + "fig/http-message-util": "^1.1", "php": ">=5.3.0", "psr/http-message": "^1.0", "react/event-loop": "^1.2", - "react/promise": "^2.3 || ^1.2.1", - "react/promise-stream": "^1.1", - "react/socket": "^1.9", + "react/promise": "^3 || ^2.3 || ^1.2.1", + "react/promise-stream": "^1.4", + "react/socket": "^1.12", "react/stream": "^1.2", "ringcentral/psr7": "^1.2" }, "require-dev": { - "clue/block-react": "^1.1", - "clue/http-proxy-react": "^1.3", - "clue/reactphp-ssh-proxy": "^1.0", - "clue/socks-react": "^1.0", - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + "clue/http-proxy-react": "^1.8", + "clue/reactphp-ssh-proxy": "^1.4", + "clue/socks-react": "^1.4", + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", + "react/async": "^4 || ^3 || ^2", + "react/promise-timer": "^1.9" }, "type": "library", "autoload": { @@ -1612,7 +1679,7 @@ ], "support": { "issues": "https://github.com/reactphp/http/issues", - "source": "https://github.com/reactphp/http/tree/v1.5.0" + "source": "https://github.com/reactphp/http/tree/v1.8.0" }, "funding": [ { @@ -1624,36 +1691,36 @@ "type": "github" } ], - "time": "2021-08-04T12:24:55+00:00" + "time": "2022-09-29T12:55:52+00:00" }, { "name": "react/promise", - "version": "v2.8.0", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise.git", - "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4" + "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise/zipball/f3cff96a19736714524ca0dd1d4130de73dbbbc4", - "reference": "f3cff96a19736714524ca0dd1d4130de73dbbbc4", + "url": "https://api.github.com/repos/reactphp/promise/zipball/234f8fd1023c9158e2314fa9d7d0e6a83db42910", + "reference": "234f8fd1023c9158e2314fa9d7d0e6a83db42910", "shasum": "" }, "require": { "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "^7.0 || ^6.5 || ^5.7 || ^4.8.36" + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36" }, "type": "library", "autoload": { - "psr-4": { - "React\\Promise\\": "src/" - }, "files": [ "src/functions_include.php" - ] + ], + "psr-4": { + "React\\Promise\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1662,7 +1729,23 @@ "authors": [ { "name": "Jan Sorgalla", - "email": "jsorgalla@gmail.com" + "email": "jsorgalla@gmail.com", + "homepage": "https://sorgalla.com/" + }, + { + "name": "Christian Lück", + "email": "christian@clue.engineering", + "homepage": "https://clue.engineering/" + }, + { + "name": "Cees-Jan Kiewiet", + "email": "reactphp@ceesjankiewiet.nl", + "homepage": "https://wyrihaximus.net/" + }, + { + "name": "Chris Boden", + "email": "cboden@gmail.com", + "homepage": "https://cboden.dev/" } ], "description": "A lightweight implementation of CommonJS Promises/A for PHP", @@ -1672,43 +1755,50 @@ ], "support": { "issues": "https://github.com/reactphp/promise/issues", - "source": "https://github.com/reactphp/promise/tree/v2.8.0" + "source": "https://github.com/reactphp/promise/tree/v2.9.0" }, - "time": "2020-05-12T15:16:56+00:00" + "funding": [ + { + "url": "https://github.com/WyriHaximus", + "type": "github" + }, + { + "url": "https://github.com/clue", + "type": "github" + } + ], + "time": "2022-02-11T10:27:51+00:00" }, { "name": "react/promise-stream", - "version": "v1.3.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise-stream.git", - "reference": "3ebd94fe0d8edbf44937948af28d02d5437e9949" + "reference": "e6d2805e09ad50c4896f65f5e8705fe4ee7731a3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-stream/zipball/3ebd94fe0d8edbf44937948af28d02d5437e9949", - "reference": "3ebd94fe0d8edbf44937948af28d02d5437e9949", + "url": "https://api.github.com/repos/reactphp/promise-stream/zipball/e6d2805e09ad50c4896f65f5e8705fe4ee7731a3", + "reference": "e6d2805e09ad50c4896f65f5e8705fe4ee7731a3", "shasum": "" }, "require": { "php": ">=5.3", - "react/promise": "^2.1 || ^1.2", + "react/promise": "^3 || ^2.1 || ^1.2", "react/stream": "^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4.6" }, "require-dev": { - "clue/block-react": "^1.0", - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", - "react/event-loop": "^1.0 || ^0.5 || ^0.4 || ^0.3", - "react/promise-timer": "^1.0" + "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" }, "type": "library", "autoload": { - "psr-4": { - "React\\Promise\\Stream\\": "src/" - }, "files": [ "src/functions_include.php" - ] + ], + "psr-4": { + "React\\Promise\\Stream\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1748,7 +1838,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise-stream/issues", - "source": "https://github.com/reactphp/promise-stream/tree/v1.3.0" + "source": "https://github.com/reactphp/promise-stream/tree/v1.5.0" }, "funding": [ { @@ -1760,20 +1850,20 @@ "type": "github" } ], - "time": "2021-10-18T10:47:09+00:00" + "time": "2022-09-09T11:42:18+00:00" }, { "name": "react/promise-timer", - "version": "v1.8.0", + "version": "v1.9.0", "source": { "type": "git", "url": "https://github.com/reactphp/promise-timer.git", - "reference": "0bbbcc79589e5bfdddba68a287f1cb805581a479" + "reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/0bbbcc79589e5bfdddba68a287f1cb805581a479", - "reference": "0bbbcc79589e5bfdddba68a287f1cb805581a479", + "url": "https://api.github.com/repos/reactphp/promise-timer/zipball/aa7a73c74b8d8c0f622f5982ff7b0351bc29e495", + "reference": "aa7a73c74b8d8c0f622f5982ff7b0351bc29e495", "shasum": "" }, "require": { @@ -1786,12 +1876,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "React\\Promise\\Timer\\": "src/" - }, "files": [ "src/functions_include.php" - ] + ], + "psr-4": { + "React\\Promise\\Timer\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1831,7 +1921,7 @@ ], "support": { "issues": "https://github.com/reactphp/promise-timer/issues", - "source": "https://github.com/reactphp/promise-timer/tree/v1.8.0" + "source": "https://github.com/reactphp/promise-timer/tree/v1.9.0" }, "funding": [ { @@ -1843,20 +1933,20 @@ "type": "github" } ], - "time": "2021-12-06T11:08:48+00:00" + "time": "2022-06-13T13:41:03+00:00" }, { "name": "react/socket", - "version": "v1.11.0", + "version": "v1.12.0", "source": { "type": "git", "url": "https://github.com/reactphp/socket.git", - "reference": "f474156aaab4f09041144fa8b57c7d70aed32a1c" + "reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/reactphp/socket/zipball/f474156aaab4f09041144fa8b57c7d70aed32a1c", - "reference": "f474156aaab4f09041144fa8b57c7d70aed32a1c", + "url": "https://api.github.com/repos/reactphp/socket/zipball/81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b", + "reference": "81e1b4d7f5450ebd8d2e9a95bb008bb15ca95a7b", "shasum": "" }, "require": { @@ -1864,14 +1954,14 @@ "php": ">=5.3.0", "react/dns": "^1.8", "react/event-loop": "^1.2", - "react/promise": "^2.6.0 || ^1.2.1", - "react/promise-timer": "^1.8", + "react/promise": "^3 || ^2.6 || ^1.2.1", + "react/promise-timer": "^1.9", "react/stream": "^1.2" }, "require-dev": { - "clue/block-react": "^1.5", "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35", - "react/promise-stream": "^1.2" + "react/async": "^4 || ^3 || ^2", + "react/promise-stream": "^1.4" }, "type": "library", "autoload": { @@ -1915,7 +2005,7 @@ ], "support": { "issues": "https://github.com/reactphp/socket/issues", - "source": "https://github.com/reactphp/socket/tree/v1.11.0" + "source": "https://github.com/reactphp/socket/tree/v1.12.0" }, "funding": [ { @@ -1927,7 +2017,7 @@ "type": "github" } ], - "time": "2022-01-14T10:14:32+00:00" + "time": "2022-08-25T12:32:25+00:00" }, { "name": "react/stream", @@ -2042,12 +2132,12 @@ } }, "autoload": { - "psr-4": { - "RingCentral\\Psr7\\": "src/" - }, "files": [ "src/functions_include.php" - ] + ], + "psr-4": { + "RingCentral\\Psr7\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2211,35 +2301,55 @@ ], "packages-dev": [ { - "name": "doctrine/instantiator", - "version": "1.4.0", + "name": "monolog/monolog", + "version": "1.27.1", "source": { "type": "git", - "url": "https://github.com/doctrine/instantiator.git", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + "url": "https://github.com/Seldaek/monolog.git", + "reference": "904713c5929655dc9b97288b69cfeedad610c9a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/904713c5929655dc9b97288b69cfeedad610c9a1", + "reference": "904713c5929655dc9b97288b69cfeedad610c9a1", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" }, "require-dev": { - "doctrine/coding-standard": "^8.0", - "ext-pdo": "*", - "ext-phar": "*", - "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "php-amqplib/php-amqplib": "~2.4", + "php-console/php-console": "^3.1.3", + "phpstan/phpstan": "^0.12.59", + "phpunit/phpunit": "~4.5", + "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "^5.3|^6.0" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" }, "type": "library", "autoload": { "psr-4": { - "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/" + "Monolog\\": "src/Monolog" } }, "notification-url": "https://packagist.org/downloads/", @@ -2248,202 +2358,174 @@ ], "authors": [ { - "name": "Marco Pivetta", - "email": "ocramius@gmail.com", - "homepage": "https://ocramius.github.io/" + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" } ], - "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://www.doctrine-project.org/projects/instantiator.html", + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", "keywords": [ - "constructor", - "instantiate" + "log", + "logging", + "psr-3" ], "support": { - "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/1.27.1" }, "funding": [ { - "url": "https://www.doctrine-project.org/sponsorship.html", - "type": "custom" - }, - { - "url": "https://www.patreon.com/phpdoctrine", - "type": "patreon" + "url": "https://github.com/Seldaek", + "type": "github" }, { - "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", "type": "tidelift" } ], - "time": "2020-11-10T18:47:58+00:00" + "time": "2022-06-09T08:53:42+00:00" }, { - "name": "monolog/monolog", - "version": "1.26.1", + "name": "myclabs/deep-copy", + "version": "1.11.1", "source": { "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c6b00f05152ae2c9b04a448f99c7590beb6042f5", - "reference": "c6b00f05152ae2c9b04a448f99c7590beb6042f5", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", + "reference": "7284c22080590fb39f2ffa3e9057f10a4ddd0e0c", "shasum": "" }, "require": { - "php": ">=5.3.0", - "psr/log": "~1.0" + "php": "^7.1 || ^8.0" }, - "provide": { - "psr/log-implementation": "1.0.0" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" }, "require-dev": { - "aws/aws-sdk-php": "^2.4.9 || ^3.0", - "doctrine/couchdb": "~1.0@dev", - "graylog2/gelf-php": "~1.0", - "php-amqplib/php-amqplib": "~2.4", - "php-console/php-console": "^3.1.3", - "phpstan/phpstan": "^0.12.59", - "phpunit/phpunit": "~4.5", - "ruflin/elastica": ">=0.90 <3.0", - "sentry/sentry": "^0.13", - "swiftmailer/swiftmailer": "^5.3|^6.0" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongo": "Allow sending log messages to a MongoDB server", - "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", - "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", - "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", - "php-console/php-console": "Allow sending log messages to Google Chrome", - "rollbar/rollbar": "Allow sending log messages to Rollbar", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server", - "sentry/sentry": "Allow sending log messages to a Sentry server" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], "psr-4": { - "Monolog\\": "src/Monolog" + "DeepCopy\\": "src/DeepCopy/" } }, "notification-url": "https://packagist.org/downloads/", "license": [ "MIT" ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "http://github.com/Seldaek/monolog", + "description": "Create deep copies (clones) of your objects", "keywords": [ - "log", - "logging", - "psr-3" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], "support": { - "issues": "https://github.com/Seldaek/monolog/issues", - "source": "https://github.com/Seldaek/monolog/tree/1.26.1" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" }, "funding": [ { - "url": "https://github.com/Seldaek", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", "type": "tidelift" } ], - "time": "2021-05-28T08:32:12+00:00" + "time": "2023-03-08T13:26:56+00:00" }, { - "name": "myclabs/deep-copy", - "version": "1.10.2", + "name": "nikic/php-parser", + "version": "v4.15.4", "source": { "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/6bb5176bc4af8bcb7d926f88718db9b96a2d4290", + "reference": "6bb5176bc4af8bcb7d926f88718db9b96a2d4290", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "ext-tokenizer": "*", + "php": ">=7.0" }, "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" }, + "bin": [ + "bin/php-parse" + ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.9-dev" + } + }, "autoload": { "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, - "files": [ - "src/DeepCopy/deep_copy.php" - ] + "PhpParser\\": "lib/PhpParser" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], - "description": "Create deep copies (clones) of your objects", + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" + "parser", + "php" ], "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.4" }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2020-11-13T09:40:50+00:00" + "time": "2023-03-05T19:49:14+00:00" }, { "name": "phar-io/manifest", - "version": "1.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0" + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/2df402786ab5368a0169091f61a7c1e0eb6852d0", - "reference": "2df402786ab5368a0169091f61a7c1e0eb6852d0", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { "ext-dom": "*", "ext-phar": "*", - "phar-io/version": "^1.0.1", - "php": "^5.6 || ^7.0" + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -2475,26 +2557,26 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/master" + "source": "https://github.com/phar-io/manifest/tree/2.0.3" }, - "time": "2017-03-05T18:14:27+00:00" + "time": "2021-07-20T11:28:43+00:00" }, { "name": "phar-io/version", - "version": "1.0.1", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df" + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/a70c0ced4be299a63d32fa96d9281d03e94041df", - "reference": "a70c0ced4be299a63d32fa96d9281d03e94041df", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -2526,273 +2608,176 @@ "description": "Library for handling version information and constraints", "support": { "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/master" + "source": "https://github.com/phar-io/version/tree/3.2.1" }, - "time": "2017-03-05T17:38:23+00:00" + "time": "2022-02-21T01:04:05+00:00" }, { - "name": "phpdocumentor/reflection-common", - "version": "2.1.0", + "name": "phpunit/php-code-coverage", + "version": "10.1.0", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b" + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "fc4f5ee614fa82d50ecf9014b51af0a9561f3df8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/6568f4687e5b41b054365f9ae03fcb1ed5f2069b", - "reference": "6568f4687e5b41b054365f9ae03fcb1ed5f2069b", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/fc4f5ee614fa82d50ecf9014b51af0a9561f3df8", + "reference": "fc4f5ee614fa82d50ecf9014b51af0a9561f3df8", "shasum": "" }, "require": { - "php": ">=7.1" + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^4.15", + "php": ">=8.1", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-text-template": "^3.0", + "sebastian/code-unit-reverse-lookup": "^3.0", + "sebastian/complexity": "^3.0", + "sebastian/environment": "^6.0", + "sebastian/lines-of-code": "^2.0", + "sebastian/version": "^4.0", + "theseer/tokenizer": "^1.2.0" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-main": "10.1-dev" } }, "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src/" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "http://www.phpdoc.org", + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" + "coverage", + "testing", + "xunit" ], "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/master" - }, - "time": "2020-04-27T09:25:28+00:00" - }, - { - "name": "phpdocumentor/reflection-docblock", - "version": "4.3.4", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/da3fd972d6bafd628114f7e7e036f45944b62e9c", - "reference": "da3fd972d6bafd628114f7e7e036f45944b62e9c", - "shasum": "" - }, - "require": { - "php": "^7.0", - "phpdocumentor/reflection-common": "^1.0.0 || ^2.0.0", - "phpdocumentor/type-resolver": "~0.4 || ^1.0.0", - "webmozart/assert": "^1.0" - }, - "require-dev": { - "doctrine/instantiator": "^1.0.5", - "mockery/mockery": "^1.0", - "phpdocumentor/type-resolver": "0.4.*", - "phpunit/phpunit": "^6.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.x-dev" - } - }, - "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": [ - "src/" - ] - } + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.0" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ + "funding": [ { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/release/4.x" - }, - "time": "2019-12-28T18:55:12+00:00" + "time": "2023-04-13T07:08:27+00:00" }, { - "name": "phpdocumentor/type-resolver", - "version": "1.0.1", + "name": "phpunit/php-file-iterator", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9" + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", - "reference": "2e32a6d48972b2c1976ed5d8967145b6cec4a4a9", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/fd9329ab3368f59fe1fe808a189c51086bd4b6bd", + "reference": "fd9329ab3368f59fe1fe808a189c51086bd4b6bd", "shasum": "" }, "require": { - "php": "^7.1", - "phpdocumentor/reflection-common": "^2.0" + "php": ">=8.1" }, "require-dev": { - "ext-tokenizer": "^7.1", - "mockery/mockery": "~1", - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { - "psr-4": { - "phpDocumentor\\Reflection\\": "src" - } + "classmap": [ + "src/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/0.7.2" - }, - "time": "2019-08-22T18:11:29+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.10.3", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "451c3cd1418cf640de218914901e51b064abb093" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093", - "reference": "451c3cd1418cf640de218914901e51b064abb093", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.0.2", - "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0", - "sebastian/comparator": "^1.2.3|^2.0|^3.0|^4.0", - "sebastian/recursion-context": "^1.0|^2.0|^3.0|^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^2.5 || ^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.10.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/4.0.1" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, + "funding": [ { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.10.3" - }, - "time": "2020-03-05T15:02:03+00:00" + "time": "2023-02-10T16:53:14+00:00" }, { - "name": "phpunit/php-code-coverage", - "version": "5.3.2", + "name": "phpunit/php-invoker", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "c89677919c5dd6d3b3852f230a663118762218ac" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/c89677919c5dd6d3b3852f230a663118762218ac", - "reference": "c89677919c5dd6d3b3852f230a663118762218ac", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", + "reference": "f5e568ba02fa5ba0ddd0f618391d5a9ea50b06d7", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-xmlwriter": "*", - "php": "^7.0", - "phpunit/php-file-iterator": "^1.4.2", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-token-stream": "^2.0.1", - "sebastian/code-unit-reverse-lookup": "^1.0.1", - "sebastian/environment": "^3.0", - "sebastian/version": "^2.0.1", - "theseer/tokenizer": "^1.1" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "ext-pcntl": "*", + "phpunit/phpunit": "^10.0" }, "suggest": { - "ext-xdebug": "^2.5.5" + "ext-pcntl": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.3.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -2811,89 +2796,49 @@ "role": "lead" } ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", "keywords": [ - "coverage", - "testing", - "xunit" + "process" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/5.3" - }, - "time": "2018-04-06T15:36:58+00:00" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.4.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/730b01bc3e867237eaac355e06a36b85dd93a8b4", - "reference": "730b01bc3e867237eaac355e06a36b85dd93a8b4", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/4.0.0" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ + "funding": [ { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "support": { - "irc": "irc://irc.freenode.net/phpunit", - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/1.4.5" - }, - "time": "2017-11-27T13:52:08+00:00" + "time": "2023-02-03T06:56:09+00:00" }, { "name": "phpunit/php-text-template", - "version": "1.2.1", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686" + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686", - "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/9f3d3709577a527025f55bcf0f7ab8052c8bb37d", + "reference": "9f3d3709577a527025f55bcf0f7ab8052c8bb37d", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -2917,34 +2862,40 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/1.2.1" + "source": "https://github.com/sebastianbergmann/php-text-template/tree/3.0.0" }, - "time": "2015-06-21T13:50:34+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:56:46+00:00" }, { "name": "phpunit/php-timer", - "version": "1.0.9", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f" + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", - "reference": "3dcf38ca72b158baf0bc245e9184d3fdffa9c46f", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/e2a2d67966e740530f4a3343fe2e030ffdc1161d", + "reference": "e2a2d67966e740530f4a3343fe2e030ffdc1161d", "shasum": "" }, "require": { - "php": "^5.3.3 || ^7.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -2959,7 +2910,7 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", + "email": "sebastian@phpunit.de", "role": "lead" } ], @@ -2970,38 +2921,74 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "source": "https://github.com/sebastianbergmann/php-timer/tree/master" + "source": "https://github.com/sebastianbergmann/php-timer/tree/6.0.0" }, - "time": "2017-02-26T11:10:40+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:57:52+00:00" }, { - "name": "phpunit/php-token-stream", - "version": "2.0.2", + "name": "phpunit/phpunit", + "version": "10.0.19", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "791198a2c6254db10131eecfe8c06670700904db" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "20c23e85c86e5c06d63538ba464e8054f4744e62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/791198a2c6254db10131eecfe8c06670700904db", - "reference": "791198a2c6254db10131eecfe8c06670700904db", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/20c23e85c86e5c06d63538ba464e8054f4744e62", + "reference": "20c23e85c86e5c06d63538ba464e8054f4744e62", "shasum": "" }, "require": { - "ext-tokenizer": "*", - "php": "^7.0" + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.10.1", + "phar-io/manifest": "^2.0.3", + "phar-io/version": "^3.0.2", + "php": ">=8.1", + "phpunit/php-code-coverage": "^10.0", + "phpunit/php-file-iterator": "^4.0", + "phpunit/php-invoker": "^4.0", + "phpunit/php-text-template": "^3.0", + "phpunit/php-timer": "^6.0", + "sebastian/cli-parser": "^2.0", + "sebastian/code-unit": "^2.0", + "sebastian/comparator": "^5.0", + "sebastian/diff": "^5.0", + "sebastian/environment": "^6.0", + "sebastian/exporter": "^5.0", + "sebastian/global-state": "^6.0", + "sebastian/object-enumerator": "^5.0", + "sebastian/recursion-context": "^5.0", + "sebastian/type": "^4.0", + "sebastian/version": "^4.0" }, - "require-dev": { - "phpunit/phpunit": "^6.2.4" + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "10.0-dev" } }, "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], "classmap": [ "src/" ] @@ -3013,78 +3000,62 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", "keywords": [ - "tokenizer" + "phpunit", + "testing", + "xunit" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-token-stream/issues", - "source": "https://github.com/sebastianbergmann/php-token-stream/tree/master" + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.0.19" }, - "abandoned": true, - "time": "2017-11-27T05:48:46+00:00" + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2023-03-27T11:46:33+00:00" }, { - "name": "phpunit/phpunit", - "version": "6.5.14", + "name": "sebastian/cli-parser", + "version": "2.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7" + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/bac23fe7ff13dbdb461481f706f0e9fe746334b7", - "reference": "bac23fe7ff13dbdb461481f706f0e9fe746334b7", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/efdc130dbbbb8ef0b545a994fd811725c5282cae", + "reference": "efdc130dbbbb8ef0b545a994fd811725c5282cae", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", - "myclabs/deep-copy": "^1.6.1", - "phar-io/manifest": "^1.0.1", - "phar-io/version": "^1.0", - "php": "^7.0", - "phpspec/prophecy": "^1.7", - "phpunit/php-code-coverage": "^5.3", - "phpunit/php-file-iterator": "^1.4.3", - "phpunit/php-text-template": "^1.2.1", - "phpunit/php-timer": "^1.0.9", - "phpunit/phpunit-mock-objects": "^5.0.9", - "sebastian/comparator": "^2.1", - "sebastian/diff": "^2.0", - "sebastian/environment": "^3.1", - "sebastian/exporter": "^3.1", - "sebastian/global-state": "^2.0", - "sebastian/object-enumerator": "^3.0.3", - "sebastian/resource-operations": "^1.0", - "sebastian/version": "^2.0.1" - }, - "conflict": { - "phpdocumentor/reflection-docblock": "3.0.2", - "phpunit/dbunit": "<3.0" + "php": ">=8.1" }, "require-dev": { - "ext-pdo": "*" + "phpunit/phpunit": "^10.0" }, - "suggest": { - "ext-xdebug": "*", - "phpunit/php-invoker": "^1.1" - }, - "bin": [ - "phpunit" - ], "type": "library", "extra": { "branch-alias": { - "dev-master": "6.5.x-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -3103,52 +3074,44 @@ "role": "lead" } ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/6.5.14" + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/2.0.0" }, - "time": "2019-02-01T05:22:47+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:15+00:00" }, { - "name": "phpunit/phpunit-mock-objects", - "version": "5.0.10", + "name": "sebastian/code-unit", + "version": "2.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f" + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/cd1cf05c553ecfec36b170070573e540b67d3f1f", - "reference": "cd1cf05c553ecfec36b170070573e540b67d3f1f", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/a81fee9eef0b7a76af11d121767abc44c104e503", + "reference": "a81fee9eef0b7a76af11d121767abc44c104e503", "shasum": "" }, "require": { - "doctrine/instantiator": "^1.0.5", - "php": "^7.0", - "phpunit/php-text-template": "^1.2.1", - "sebastian/exporter": "^3.1" - }, - "conflict": { - "phpunit/phpunit": "<6.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.5.11" - }, - "suggest": { - "ext-soap": "*" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0.x-dev" + "dev-main": "2.0-dev" } }, "autoload": { @@ -3164,46 +3127,47 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" + "role": "lead" + } ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { - "issues": "https://github.com/sebastianbergmann/phpunit-mock-objects/issues", - "source": "https://github.com/sebastianbergmann/phpunit-mock-objects/tree/5.0.10" + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/2.0.0" }, - "abandoned": true, - "time": "2018-08-09T05:50:03+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:58:43+00:00" }, { "name": "sebastian/code-unit-reverse-lookup", - "version": "1.0.2", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619" + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/1de8cd5c010cb153fcd68b8d0f64606f523f7619", - "reference": "1de8cd5c010cb153fcd68b8d0f64606f523f7619", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", + "reference": "5e3a687f7d8ae33fb362c5c0743794bbb2420a1d", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -3225,7 +3189,7 @@ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/1.0.2" + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/3.0.0" }, "funding": [ { @@ -3233,34 +3197,36 @@ "type": "github" } ], - "time": "2020-11-30T08:15:22+00:00" + "time": "2023-02-03T06:59:15+00:00" }, { "name": "sebastian/comparator", - "version": "2.1.3", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", - "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/72f01e6586e0caf6af81297897bd112eb7e9627c", + "reference": "72f01e6586e0caf6af81297897bd112eb7e9627c", "shasum": "" }, "require": { - "php": "^7.0", - "sebastian/diff": "^2.0 || ^3.0", - "sebastian/exporter": "^3.1" + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/diff": "^5.0", + "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^6.4" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.1.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3273,6 +3239,10 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, { "name": "Jeff Welch", "email": "whatthejeff@gmail.com" @@ -3284,10 +3254,6 @@ { "name": "Bernhard Schussek", "email": "bschussek@2bepublished.at" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" } ], "description": "Provides the functionality to compare PHP values for equality", @@ -3299,34 +3265,98 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/master" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:07:16+00:00" + }, + { + "name": "sebastian/complexity", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "reference": "e67d240970c9dc7ea7b2123a6d520e334dd61dc6", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.10", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/3.0.0" }, - "time": "2018-02-01T13:46:46+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T06:59:47+00:00" }, { "name": "sebastian/diff", - "version": "2.0.1", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd" + "reference": "aae9a0a43bff37bd5d8d0311426c87bf36153f02" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", - "reference": "347c1d8b49c5c3ee30c7040ea6fc446790e6bddd", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/aae9a0a43bff37bd5d8d0311426c87bf36153f02", + "reference": "aae9a0a43bff37bd5d8d0311426c87bf36153f02", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.2" + "phpunit/phpunit": "^10.0", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3339,50 +3369,63 @@ "BSD-3-Clause" ], "authors": [ - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" - }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], "description": "Diff implementation", "homepage": "https://github.com/sebastianbergmann/diff", "keywords": [ - "diff" + "diff", + "udiff", + "unidiff", + "unified diff" ], "support": { "issues": "https://github.com/sebastianbergmann/diff/issues", - "source": "https://github.com/sebastianbergmann/diff/tree/master" + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/5.0.1" }, - "time": "2017-08-03T08:09:46+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-03-23T05:12:41+00:00" }, { "name": "sebastian/environment", - "version": "3.1.0", + "version": "6.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5" + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/cd0871b3975fb7fc44d11314fd1ee20925fce4f5", - "reference": "cd0871b3975fb7fc44d11314fd1ee20925fce4f5", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/43c751b41d74f96cbbd4e07b7aec9675651e2951", + "reference": "43c751b41d74f96cbbd4e07b7aec9675651e2951", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.1" + "phpunit/phpunit": "^10.0" + }, + "suggest": { + "ext-posix": "*" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -3401,7 +3444,7 @@ } ], "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "http://www.github.com/sebastianbergmann/environment", + "homepage": "https://github.com/sebastianbergmann/environment", "keywords": [ "Xdebug", "environment", @@ -3409,36 +3452,43 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/master" + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/6.0.1" }, - "time": "2017-07-01T08:51:00+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-04-11T05:39:26+00:00" }, { "name": "sebastian/exporter", - "version": "3.1.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db" + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0c32ea2e40dbf59de29f3b49bf375176ce7dd8db", - "reference": "0c32ea2e40dbf59de29f3b49bf375176ce7dd8db", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", + "reference": "f3ec4bf931c0b31e5b413f5b4fc970a7d03338c0", "shasum": "" }, "require": { - "php": ">=7.0", - "sebastian/recursion-context": "^3.0" + "ext-mbstring": "*", + "php": ">=8.1", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "ext-mbstring": "*", - "phpunit/phpunit": "^8.5" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.1.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3473,14 +3523,14 @@ } ], "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", + "homepage": "https://www.github.com/sebastianbergmann/exporter", "keywords": [ "export", "exporter" ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/3.1.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/5.0.0" }, "funding": [ { @@ -3488,35 +3538,35 @@ "type": "github" } ], - "time": "2021-11-11T13:51:24+00:00" + "time": "2023-02-03T07:06:49+00:00" }, { "name": "sebastian/global-state", - "version": "2.0.0", + "version": "6.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4" + "reference": "aab257c712de87b90194febd52e4d184551c2d44" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", - "reference": "e8ba02eed7bbbb9e59e43dedd3dddeff4a56b0c4", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/aab257c712de87b90194febd52e4d184551c2d44", + "reference": "aab257c712de87b90194febd52e4d184551c2d44", "shasum": "" }, "require": { - "php": "^7.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" - }, - "suggest": { - "ext-uopz": "*" + "ext-dom": "*", + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-main": "6.0-dev" } }, "autoload": { @@ -3541,36 +3591,99 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/2.0.0" + "source": "https://github.com/sebastianbergmann/global-state/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:07:38+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "2.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/17c4d940ecafb3d15d2cf916f4108f664e28b130", + "reference": "17c4d940ecafb3d15d2cf916f4108f664e28b130", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^4.10", + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/2.0.0" }, - "time": "2017-04-27T15:39:26+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:08:02+00:00" }, { "name": "sebastian/object-enumerator", - "version": "3.0.4", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2" + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", - "reference": "e67f6d32ebd0c749cf9d1dbd9f226c727043cdf2", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/202d0e344a580d7f7d04b3fafce6933e59dae906", + "reference": "202d0e344a580d7f7d04b3fafce6933e59dae906", "shasum": "" }, "require": { - "php": ">=7.0", - "sebastian/object-reflector": "^1.1.1", - "sebastian/recursion-context": "^3.0" + "php": ">=8.1", + "sebastian/object-reflector": "^3.0", + "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3592,7 +3705,7 @@ "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/3.0.4" + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/5.0.0" }, "funding": [ { @@ -3600,32 +3713,32 @@ "type": "github" } ], - "time": "2020-11-30T07:40:27+00:00" + "time": "2023-02-03T07:08:32+00:00" }, { "name": "sebastian/object-reflector", - "version": "1.1.2", + "version": "3.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d" + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", - "reference": "9b8772b9cbd456ab45d4a598d2dd1a1bced6363d", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/24ed13d98130f0e7122df55d06c5c4942a577957", + "reference": "24ed13d98130f0e7122df55d06c5c4942a577957", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -3647,7 +3760,7 @@ "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/1.1.2" + "source": "https://github.com/sebastianbergmann/object-reflector/tree/3.0.0" }, "funding": [ { @@ -3655,32 +3768,32 @@ "type": "github" } ], - "time": "2020-11-30T07:37:18+00:00" + "time": "2023-02-03T07:06:18+00:00" }, { "name": "sebastian/recursion-context", - "version": "3.0.1", + "version": "5.0.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb" + "reference": "05909fb5bc7df4c52992396d0116aed689f93712" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/367dcba38d6e1977be014dc4b22f47a484dac7fb", - "reference": "367dcba38d6e1977be014dc4b22f47a484dac7fb", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", + "reference": "05909fb5bc7df4c52992396d0116aed689f93712", "shasum": "" }, "require": { - "php": ">=7.0" + "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^6.0" + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0.x-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -3707,10 +3820,10 @@ } ], "description": "Provides functionality to recursively process PHP variables", - "homepage": "http://www.github.com/sebastianbergmann/recursion-context", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/3.0.1" + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" }, "funding": [ { @@ -3718,29 +3831,32 @@ "type": "github" } ], - "time": "2020-11-30T07:34:24+00:00" + "time": "2023-02-03T07:05:40+00:00" }, { - "name": "sebastian/resource-operations", - "version": "1.0.0", + "name": "sebastian/type", + "version": "4.0.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/resource-operations.git", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", - "reference": "ce990bb21759f94aeafd30209e8cfcdfa8bc3f52", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/462699a16464c3944eefc02ebdd77882bd3925bf", + "reference": "462699a16464c3944eefc02ebdd77882bd3925bf", "shasum": "" }, "require": { - "php": ">=5.6.0" + "php": ">=8.1" + }, + "require-dev": { + "phpunit/phpunit": "^10.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -3755,38 +3871,45 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides a list of PHP built-in functions that operate on resources", - "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", "support": { - "issues": "https://github.com/sebastianbergmann/resource-operations/issues", - "source": "https://github.com/sebastianbergmann/resource-operations/tree/master" + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/4.0.0" }, - "time": "2015-07-28T20:34:47+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-03T07:10:45+00:00" }, { "name": "sebastian/version", - "version": "2.0.1", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/version.git", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019" + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019", - "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c51fa83a5d8f43f1402e3f32a005e6262244ef17", + "reference": "c51fa83a5d8f43f1402e3f32a005e6262244ef17", "shasum": "" }, "require": { - "php": ">=5.6" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -3809,22 +3932,28 @@ "homepage": "https://github.com/sebastianbergmann/version", "support": { "issues": "https://github.com/sebastianbergmann/version/issues", - "source": "https://github.com/sebastianbergmann/version/tree/master" + "source": "https://github.com/sebastianbergmann/version/tree/4.0.1" }, - "time": "2016-10-03T07:35:21+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2023-02-07T11:34:05+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.7.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879", + "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879", "shasum": "" }, "require": { @@ -3860,116 +3989,35 @@ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", - "standards" + "standards", + "static analysis" ], "support": { "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues", "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-12-12T21:44:58+00:00" - }, - { - "name": "symfony/polyfill-ctype", - "version": "v1.24.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "30885182c981ab175d4d034db0f6f469898070ab" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab", - "reference": "30885182c981ab175d4d034db0f6f469898070ab", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "provide": { - "ext-ctype": "*" - }, - "suggest": { - "ext-ctype": "For best performance" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "1.23-dev" - }, - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Gert de Pagter", - "email": "BackEndTea@gmail.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for ctype functions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "ctype", - "polyfill", - "portable" - ], - "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.24.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-10-20T20:35:02+00:00" + "time": "2023-02-22T23:07:41+00:00" }, { "name": "theseer/tokenizer", - "version": "1.1.3", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9" + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9", - "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "shasum": "" }, "require": { "ext-dom": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": "^7.0" + "php": "^7.2 || ^8.0" }, "type": "library", "autoload": { @@ -3991,62 +4039,15 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/master" - }, - "time": "2019-06-13T22:48:21+00:00" - }, - { - "name": "webmozart/assert", - "version": "1.9.1", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/bafc69caeb4d49c39fd0779086c03a3738cbb389", - "reference": "bafc69caeb4d49c39fd0779086c03a3738cbb389", - "shasum": "" - }, - "require": { - "php": "^5.3.3 || ^7.0 || ^8.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "phpstan/phpstan": "<0.12.20", - "vimeo/psalm": "<3.9.1" - }, - "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^7.5.13" - }, - "type": "library", - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ + "funding": [ { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" + "url": "https://github.com/theseer", + "type": "github" } ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.9.1" - }, - "time": "2020-07-08T17:02:28+00:00" + "time": "2021-07-28T10:34:58+00:00" } ], "aliases": [], @@ -4055,9 +4056,9 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.0.0", + "php": ">=7.1", "ext-json": "*" }, "platform-dev": [], - "plugin-api-version": "2.2.0" + "plugin-api-version": "2.3.0" } From d1cad1c5770d92f64727cd226f1c4c027955d320 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Thu, 13 Apr 2023 20:12:02 +0200 Subject: [PATCH 04/10] AnswerInlineQuery: fixed return type to $results --- src/Telegram/Methods/AnswerInlineQuery.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Telegram/Methods/AnswerInlineQuery.php b/src/Telegram/Methods/AnswerInlineQuery.php index da22ca1..b59a044 100644 --- a/src/Telegram/Methods/AnswerInlineQuery.php +++ b/src/Telegram/Methods/AnswerInlineQuery.php @@ -29,7 +29,7 @@ class AnswerInlineQuery extends TelegramMethods /** * A JSON-serialized array (of InlineQueryResult) of results for the inline query - * @var array[] + * @var array[]|string */ protected $results = []; @@ -112,9 +112,9 @@ public function addResult(Result $result): AnswerInlineQuery /** * Use this method to get list of added results * - * @return AnswerInlineQuery[] + * @return AnswerInlineQuery[]|string String is JSON encoded representation of array of objects */ - public function getResults(): array + public function getResults() { return $this->results; } From 9816cd36641ded77f8671c0ad28dfcf6d9c5be5e Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Thu, 13 Apr 2023 20:13:08 +0200 Subject: [PATCH 05/10] Tests: added return types and fixed deprecated annotations --- .../TelegramRawDataTest.php | 7 +++--- .../Methods/AnswerInlineQueryTest.php | 8 +++---- .../Telegram/Methods/EditMessageTextTest.php | 22 +++++++------------ tests/Telegram/Methods/GetFileTest.php | 4 ++-- tests/Telegram/Methods/GetMeTest.php | 4 ++-- tests/Telegram/Methods/GetUpdatesTest.php | 4 ++-- .../Methods/GetUserProfilePhotosTest.php | 4 ++-- tests/Telegram/Methods/GetWebhookInfoTest.php | 4 ++-- tests/Telegram/Methods/SendAudioTest.php | 10 ++++----- tests/Telegram/Methods/SendDocumentTest.php | 4 ++-- tests/Telegram/Methods/SendInvoiceTest.php | 4 ++-- tests/Telegram/Methods/SendLocationTest.php | 4 ++-- tests/Telegram/Methods/SendMessageTest.php | 14 +++++------- tests/Telegram/Methods/SendPhotoTest.php | 4 ++-- tests/Telegram/Methods/SendStickerTest.php | 4 ++-- tests/Telegram/Methods/SendVideoTest.php | 4 ++-- tests/Telegram/Methods/SetWebhookTest.php | 10 ++++----- tests/Telegram/Types/Custom/InputFileTest.php | 4 +--- .../Types/InlineKeyboardMarkupTest.php | 4 ++-- tests/TgLogTest.php | 4 ++-- 20 files changed, 56 insertions(+), 71 deletions(-) diff --git a/tests/InternalFunctionality/TelegramRawDataTest.php b/tests/InternalFunctionality/TelegramRawDataTest.php index f6cacc3..d3eba37 100644 --- a/tests/InternalFunctionality/TelegramRawDataTest.php +++ b/tests/InternalFunctionality/TelegramRawDataTest.php @@ -8,7 +8,7 @@ class TelegramRawDataTest extends TestCase { - public function providerGetTypeOfResult() + public static function providerGetTypeOfResult(): array { $mapValues[] = ['{"ok":true,"result":{"file_id":"XYZ","file_size":5254,"file_path":"voice\/file_8"}}', 'array']; $mapValues[] = ['{"ok":true,"result":[]}', 'array']; @@ -32,7 +32,7 @@ public function testGetTypeOfResult($data, $expectedResult) $this->assertSame($expectedResult, $actualResult); } - public function providerGetInvalidTypeOfResult() + public static function providerGetInvalidTypeOfResult(): array { $mapValues[] = ['{"ok":true,"result":"hello world"}']; $mapValues[] = ['{"ok":true,"result":3.1415}']; @@ -43,11 +43,10 @@ public function providerGetInvalidTypeOfResult() /** * @dataProvider providerGetInvalidTypeOfResult - * @param $data - * @expectedException \unreal4u\TelegramAPI\Exceptions\InvalidResultType */ public function testGetInvalidTypeOfResult($data) { + $this->expectException(\unreal4u\TelegramAPI\Exceptions\InvalidResultType::class); $tgRawData = new TelegramResponse($data); $tgRawData->getTypeOfResult(); } diff --git a/tests/Telegram/Methods/AnswerInlineQueryTest.php b/tests/Telegram/Methods/AnswerInlineQueryTest.php index 05a05c7..e655d77 100644 --- a/tests/Telegram/Methods/AnswerInlineQueryTest.php +++ b/tests/Telegram/Methods/AnswerInlineQueryTest.php @@ -21,7 +21,7 @@ class AnswerInlineQueryTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } @@ -54,8 +54,8 @@ public function testAnswerInlineQuery() $promise = $this->tgLog->performApiRequest($answerInlineQuery); - $this->assertEquals( - trim(file_get_contents('tests/Mock/MockData/AnswerInlineQueryArticle_unit-test-001.json')), + $this->assertJsonStringEqualsJsonFile( + 'tests/Mock/MockData/AnswerInlineQueryArticle_unit-test-001.json', $answerInlineQuery->getResults() ); diff --git a/tests/Telegram/Methods/EditMessageTextTest.php b/tests/Telegram/Methods/EditMessageTextTest.php index ca02b9f..760b2dc 100644 --- a/tests/Telegram/Methods/EditMessageTextTest.php +++ b/tests/Telegram/Methods/EditMessageTextTest.php @@ -16,7 +16,7 @@ class EditMessageTextTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -24,38 +24,32 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage chat_id - */ public function testMissingMandatoryExportField() { + $this->expectExceptionMessage("chat_id"); + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); $editMessageText = new EditMessageText(); $editMessageText->export(); } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage text - */ public function testMissingMandatoryTextField() { + $this->expectExceptionMessage("text"); + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); $editMessageText = new EditMessageText(); $editMessageText->inline_message_id = 12341234; $editMessageText->export(); } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage message_id - */ public function testMissingMandatoryMessageIdField() { + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); + $this->expectExceptionMessage("message_id"); $editMessageText = new EditMessageText(); $editMessageText->chat_id = 12341234; $editMessageText->text = 'Hello world'; diff --git a/tests/Telegram/Methods/GetFileTest.php b/tests/Telegram/Methods/GetFileTest.php index b506bf7..924f23d 100644 --- a/tests/Telegram/Methods/GetFileTest.php +++ b/tests/Telegram/Methods/GetFileTest.php @@ -18,7 +18,7 @@ class GetFileTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -26,7 +26,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/GetMeTest.php b/tests/Telegram/Methods/GetMeTest.php index efbce7f..e1b528a 100644 --- a/tests/Telegram/Methods/GetMeTest.php +++ b/tests/Telegram/Methods/GetMeTest.php @@ -18,7 +18,7 @@ class GetMeTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -26,7 +26,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/GetUpdatesTest.php b/tests/Telegram/Methods/GetUpdatesTest.php index acfb263..3869ec7 100644 --- a/tests/Telegram/Methods/GetUpdatesTest.php +++ b/tests/Telegram/Methods/GetUpdatesTest.php @@ -23,7 +23,7 @@ class GetUpdatesTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -31,7 +31,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/GetUserProfilePhotosTest.php b/tests/Telegram/Methods/GetUserProfilePhotosTest.php index f045df4..a656489 100644 --- a/tests/Telegram/Methods/GetUserProfilePhotosTest.php +++ b/tests/Telegram/Methods/GetUserProfilePhotosTest.php @@ -19,7 +19,7 @@ class GetUserProfilePhotosTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -27,7 +27,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/GetWebhookInfoTest.php b/tests/Telegram/Methods/GetWebhookInfoTest.php index 2dfd153..0b32925 100644 --- a/tests/Telegram/Methods/GetWebhookInfoTest.php +++ b/tests/Telegram/Methods/GetWebhookInfoTest.php @@ -17,7 +17,7 @@ class GetWebhookInfoTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -25,7 +25,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendAudioTest.php b/tests/Telegram/Methods/SendAudioTest.php index 9c96efd..050200a 100644 --- a/tests/Telegram/Methods/SendAudioTest.php +++ b/tests/Telegram/Methods/SendAudioTest.php @@ -21,7 +21,7 @@ class SendAudioTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } @@ -64,12 +64,10 @@ public function testSendAudio() }); } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage chat_id - */ public function testExportException() { + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); + $this->expectExceptionMessage("chat_id"); $sendAudio = new SendAudio(); $sendAudio->export(); } diff --git a/tests/Telegram/Methods/SendDocumentTest.php b/tests/Telegram/Methods/SendDocumentTest.php index 5206f31..d289f39 100644 --- a/tests/Telegram/Methods/SendDocumentTest.php +++ b/tests/Telegram/Methods/SendDocumentTest.php @@ -21,7 +21,7 @@ class SendDocumentTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendInvoiceTest.php b/tests/Telegram/Methods/SendInvoiceTest.php index 28b72db..7361fcb 100644 --- a/tests/Telegram/Methods/SendInvoiceTest.php +++ b/tests/Telegram/Methods/SendInvoiceTest.php @@ -19,7 +19,7 @@ class SendInvoiceTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -27,7 +27,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendLocationTest.php b/tests/Telegram/Methods/SendLocationTest.php index baa3c2d..1340710 100644 --- a/tests/Telegram/Methods/SendLocationTest.php +++ b/tests/Telegram/Methods/SendLocationTest.php @@ -20,7 +20,7 @@ class SendLocationTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -28,7 +28,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendMessageTest.php b/tests/Telegram/Methods/SendMessageTest.php index a078a9d..32e3711 100644 --- a/tests/Telegram/Methods/SendMessageTest.php +++ b/tests/Telegram/Methods/SendMessageTest.php @@ -21,7 +21,7 @@ class SendMessageTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } @@ -73,8 +73,8 @@ public function testSendMessageWithKeyboardOptions() $sendMessage->reply_markup->keyboard = [['Yes', 'No']]; // Important assert: ensure we send a serialized object to Telegram - $this->assertEquals( - trim(file_get_contents('tests/Mock/MockData/SendMessage-replyKeyboardMarkup.json')), + $this->assertJsonStringEqualsJsonFile( + 'tests/Mock/MockData/SendMessage-replyKeyboardMarkup.json', json_encode($sendMessage->reply_markup) ); @@ -118,12 +118,10 @@ public function testSendMessageChatNotFound() } } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage chat_id - */ public function testSendIncompleteMessage() { + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); + $this->expectExceptionMessage("chat_id"); $sendMessage = new SendMessage(); $sendMessage->text = 'Hello world!'; diff --git a/tests/Telegram/Methods/SendPhotoTest.php b/tests/Telegram/Methods/SendPhotoTest.php index b78d92e..7adf51d 100644 --- a/tests/Telegram/Methods/SendPhotoTest.php +++ b/tests/Telegram/Methods/SendPhotoTest.php @@ -20,7 +20,7 @@ class SendPhotoTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -28,7 +28,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendStickerTest.php b/tests/Telegram/Methods/SendStickerTest.php index 58cfee5..e6bc728 100644 --- a/tests/Telegram/Methods/SendStickerTest.php +++ b/tests/Telegram/Methods/SendStickerTest.php @@ -21,7 +21,7 @@ class SendStickerTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SendVideoTest.php b/tests/Telegram/Methods/SendVideoTest.php index ad50784..f31c671 100644 --- a/tests/Telegram/Methods/SendVideoTest.php +++ b/tests/Telegram/Methods/SendVideoTest.php @@ -21,7 +21,7 @@ class SendVideoTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -29,7 +29,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/Telegram/Methods/SetWebhookTest.php b/tests/Telegram/Methods/SetWebhookTest.php index b09138e..daabc26 100644 --- a/tests/Telegram/Methods/SetWebhookTest.php +++ b/tests/Telegram/Methods/SetWebhookTest.php @@ -17,7 +17,7 @@ class SetWebhookTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -25,17 +25,15 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\MissingMandatoryField - * @expectedExceptionMessage url - */ public function testMandatoryFields() { + $this->expectExceptionMessage("url"); + $this->expectException(\unreal4u\TelegramAPI\Exceptions\MissingMandatoryField::class); $setWebhook = new SetWebhook(); $this->tgLog->performApiRequest($setWebhook); } diff --git a/tests/Telegram/Types/Custom/InputFileTest.php b/tests/Telegram/Types/Custom/InputFileTest.php index 1f99cbc..afc687b 100644 --- a/tests/Telegram/Types/Custom/InputFileTest.php +++ b/tests/Telegram/Types/Custom/InputFileTest.php @@ -7,11 +7,9 @@ class InputFileTest extends TestCase { - /** - * @expectedException \unreal4u\TelegramAPI\Exceptions\FileNotReadable - */ public function testInvalidFile() { + $this->expectException(\unreal4u\TelegramAPI\Exceptions\FileNotReadable::class); new InputFile('non-existant-file.txt'); } } diff --git a/tests/Telegram/Types/InlineKeyboardMarkupTest.php b/tests/Telegram/Types/InlineKeyboardMarkupTest.php index 2943b17..c7cb82a 100644 --- a/tests/Telegram/Types/InlineKeyboardMarkupTest.php +++ b/tests/Telegram/Types/InlineKeyboardMarkupTest.php @@ -19,7 +19,7 @@ class InlineKeyboardMarkupTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -27,7 +27,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } diff --git a/tests/TgLogTest.php b/tests/TgLogTest.php index 0b3d360..fc822a6 100644 --- a/tests/TgLogTest.php +++ b/tests/TgLogTest.php @@ -16,7 +16,7 @@ class TgLogTest extends TestCase /** * Prepares the environment before running a test. */ - protected function setUp() + protected function setUp(): void { $this->tgLog = new MockTgLog('TEST-TEST'); } @@ -24,7 +24,7 @@ protected function setUp() /** * Cleans up the environment after running a test. */ - protected function tearDown() + protected function tearDown(): void { $this->tgLog = null; } From 56c219688196149e3c38b0f9dc079d42a394aed7 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Wed, 19 Apr 2023 19:33:10 +0200 Subject: [PATCH 06/10] TelegramTypes: updated mapping ChatLocation in Chat --- src/Telegram/Types/Chat.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Telegram/Types/Chat.php b/src/Telegram/Types/Chat.php index c99c68f..8b61183 100644 --- a/src/Telegram/Types/Chat.php +++ b/src/Telegram/Types/Chat.php @@ -141,6 +141,8 @@ public function mapSubObjects(string $key, array $data): TelegramTypes return new Message($data, $this->logger); case 'permissions': return new ChatPermissions($data, $this->logger); + case 'location': + return new ChatLocation($data, $this->logger); } return parent::mapSubObjects($key, $data); } From 56c942e092ecf218e709c2178bad4603539ea824 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Tue, 25 Apr 2023 16:27:46 +0200 Subject: [PATCH 07/10] TelegramTypes: added 'allow_sending_without_reply' properties to send* methods --- src/Telegram/Methods/SendAnimation.php | 6 ++++++ src/Telegram/Methods/SendAudio.php | 6 ++++++ src/Telegram/Methods/SendContact.php | 6 ++++++ src/Telegram/Methods/SendDice.php | 6 ++++++ src/Telegram/Methods/SendDocument.php | 2 +- src/Telegram/Methods/SendGame.php | 6 ++++++ src/Telegram/Methods/SendInvoice.php | 6 ++++++ src/Telegram/Methods/SendLocation.php | 6 ++++++ src/Telegram/Methods/SendMediaGroup.php | 2 +- src/Telegram/Methods/SendMessage.php | 6 ++++++ src/Telegram/Methods/SendPhoto.php | 6 ++++++ src/Telegram/Methods/SendPoll.php | 6 ++++++ src/Telegram/Methods/SendSticker.php | 6 ++++++ src/Telegram/Methods/SendVenue.php | 6 ++++++ src/Telegram/Methods/SendVideo.php | 6 ++++++ src/Telegram/Methods/SendVideoNote.php | 6 ++++++ src/Telegram/Methods/SendVoice.php | 6 ++++++ 17 files changed, 92 insertions(+), 2 deletions(-) diff --git a/src/Telegram/Methods/SendAnimation.php b/src/Telegram/Methods/SendAnimation.php index 9e9e97d..4e19a6c 100644 --- a/src/Telegram/Methods/SendAnimation.php +++ b/src/Telegram/Methods/SendAnimation.php @@ -88,6 +88,12 @@ class SendAnimation extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendAudio.php b/src/Telegram/Methods/SendAudio.php index aba013b..3cea467 100644 --- a/src/Telegram/Methods/SendAudio.php +++ b/src/Telegram/Methods/SendAudio.php @@ -96,6 +96,12 @@ class SendAudio extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendContact.php b/src/Telegram/Methods/SendContact.php index a138d78..d6633bc 100644 --- a/src/Telegram/Methods/SendContact.php +++ b/src/Telegram/Methods/SendContact.php @@ -61,6 +61,12 @@ class SendContact extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendDice.php b/src/Telegram/Methods/SendDice.php index f428661..0ad942c 100644 --- a/src/Telegram/Methods/SendDice.php +++ b/src/Telegram/Methods/SendDice.php @@ -44,6 +44,12 @@ class SendDice extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendDocument.php b/src/Telegram/Methods/SendDocument.php index 1c8e8da..c7e803b 100644 --- a/src/Telegram/Methods/SendDocument.php +++ b/src/Telegram/Methods/SendDocument.php @@ -86,7 +86,7 @@ class SendDocument extends TelegramMethods public $reply_to_message_id = 0; /** - * Optional. Pass True, if the message should be sent even if the specified replied-to message is not found + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found * @var bool */ public $allow_sending_without_reply = false; diff --git a/src/Telegram/Methods/SendGame.php b/src/Telegram/Methods/SendGame.php index d690f62..3130268 100644 --- a/src/Telegram/Methods/SendGame.php +++ b/src/Telegram/Methods/SendGame.php @@ -42,6 +42,12 @@ class SendGame extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendInvoice.php b/src/Telegram/Methods/SendInvoice.php index 3e9eff1..bceca74 100644 --- a/src/Telegram/Methods/SendInvoice.php +++ b/src/Telegram/Methods/SendInvoice.php @@ -143,6 +143,12 @@ class SendInvoice extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. * If not empty, the first button must be a Pay button diff --git a/src/Telegram/Methods/SendLocation.php b/src/Telegram/Methods/SendLocation.php index ad022e7..723da92 100644 --- a/src/Telegram/Methods/SendLocation.php +++ b/src/Telegram/Methods/SendLocation.php @@ -75,6 +75,12 @@ class SendLocation extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendMediaGroup.php b/src/Telegram/Methods/SendMediaGroup.php index 8d9d143..f2d93cc 100644 --- a/src/Telegram/Methods/SendMediaGroup.php +++ b/src/Telegram/Methods/SendMediaGroup.php @@ -65,7 +65,7 @@ class SendMediaGroup extends TelegramMethods * Optional. Pass True, if the message should be sent even if the specified replied-to message is not found * @var bool */ - public $allow_sending_without_reply; + public $allow_sending_without_reply = false; public function getMandatoryFields(): array { diff --git a/src/Telegram/Methods/SendMessage.php b/src/Telegram/Methods/SendMessage.php index afd7050..7be9a6b 100644 --- a/src/Telegram/Methods/SendMessage.php +++ b/src/Telegram/Methods/SendMessage.php @@ -50,6 +50,12 @@ class SendMessage extends TelegramMethods */ public $disable_notification = false; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. If the message is a reply, ID of the original message * @var int diff --git a/src/Telegram/Methods/SendPhoto.php b/src/Telegram/Methods/SendPhoto.php index 3ffd402..df02b04 100644 --- a/src/Telegram/Methods/SendPhoto.php +++ b/src/Telegram/Methods/SendPhoto.php @@ -60,6 +60,12 @@ class SendPhoto extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendPoll.php b/src/Telegram/Methods/SendPoll.php index 4e8cfeb..276381f 100644 --- a/src/Telegram/Methods/SendPoll.php +++ b/src/Telegram/Methods/SendPoll.php @@ -112,6 +112,12 @@ class SendPoll extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendSticker.php b/src/Telegram/Methods/SendSticker.php index 5fbb8e4..8dd3ec4 100644 --- a/src/Telegram/Methods/SendSticker.php +++ b/src/Telegram/Methods/SendSticker.php @@ -47,6 +47,12 @@ class SendSticker extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendVenue.php b/src/Telegram/Methods/SendVenue.php index 706e305..fab2906 100644 --- a/src/Telegram/Methods/SendVenue.php +++ b/src/Telegram/Methods/SendVenue.php @@ -73,6 +73,12 @@ class SendVenue extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user. diff --git a/src/Telegram/Methods/SendVideo.php b/src/Telegram/Methods/SendVideo.php index 656e5c5..b6259b3 100644 --- a/src/Telegram/Methods/SendVideo.php +++ b/src/Telegram/Methods/SendVideo.php @@ -92,6 +92,12 @@ class SendVideo extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendVideoNote.php b/src/Telegram/Methods/SendVideoNote.php index 25497a8..e7138d3 100644 --- a/src/Telegram/Methods/SendVideoNote.php +++ b/src/Telegram/Methods/SendVideoNote.php @@ -61,6 +61,12 @@ class SendVideoNote extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user diff --git a/src/Telegram/Methods/SendVoice.php b/src/Telegram/Methods/SendVoice.php index bea6472..2334629 100644 --- a/src/Telegram/Methods/SendVoice.php +++ b/src/Telegram/Methods/SendVoice.php @@ -69,6 +69,12 @@ class SendVoice extends TelegramMethods */ public $reply_to_message_id = 0; + /** + * Optional. Pass True if the message should be sent even if the specified replied-to message is not found + * @var bool + */ + public $allow_sending_without_reply = false; + /** * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to * hide keyboard or to force a reply from the user From e93fd5e7c73862e0504986ab13a94f97c1414de9 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Sat, 29 Apr 2023 09:59:19 +0200 Subject: [PATCH 08/10] TelegramTypes: added InlineQuery::$chat_type and Chat::active_usernames --- src/Telegram/Types/Chat.php | 7 +++++++ src/Telegram/Types/Inline/Query.php | 20 ++++++++++++++------ 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/Telegram/Types/Chat.php b/src/Telegram/Types/Chat.php index 8b61183..3a42fca 100644 --- a/src/Telegram/Types/Chat.php +++ b/src/Telegram/Types/Chat.php @@ -64,6 +64,13 @@ class Chat extends TelegramTypes */ public $photo; + /** + * Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. + * Returned only in {@see getChat} + * @var array + */ + public $active_usernames = []; + /** * Optional. Bio of the other party in a private chat. Returned only in {@see getChat} * @var string diff --git a/src/Telegram/Types/Inline/Query.php b/src/Telegram/Types/Inline/Query.php index 08f4204..b2ea289 100644 --- a/src/Telegram/Types/Inline/Query.php +++ b/src/Telegram/Types/Inline/Query.php @@ -30,12 +30,6 @@ class Query extends TelegramTypes */ public $from; - /** - * Optional. Sender location, only for bots that request user location - * @var Location - */ - public $location; - /** * Text of the query (up to 512 characters) * @var string @@ -48,6 +42,20 @@ class Query extends TelegramTypes */ public $offset = ''; + /** + * Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with + * the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for + * requests sent from official clients and most third-party clients, unless the request was sent from a secret chat + * @var string + */ + public $chat_type = ''; + + /** + * Optional. Sender location, only for bots that request user location + * @var Location + */ + public $location; + protected function mapSubObjects(string $key, array $data): TelegramTypes { switch ($key) { From b7e31a361288cbb9a4fe09d5254d727b0ebd24a6 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Sat, 13 May 2023 11:20:42 +0200 Subject: [PATCH 09/10] TelegramTypes: added deprecated but still used Message::$new_chat_participant and Message::$left_chat_participant --- src/Telegram/Types/Message.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index 9cada6b..d55a49e 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -258,17 +258,33 @@ class Message extends TelegramTypes /** * Optional. A new member was added to the group, information about them (this member may be the bot itself) * - * @deprecated + * @deprecated Backward compatibility, use $new_chat_members array instead * @var User */ public $new_chat_member; + /** + * Optional. A new member was added to the group, information about them (this member may be the bot itself) + * + * @deprecated Backward compatibility, use $new_chat_members array instead + * @var User + */ + public $new_chat_participant; + /** * Optional. A member was removed from the group, information about them (this member may be the bot itself) * @var User */ public $left_chat_member; + /** + * Optional. A member was removed from the group, information about them (this member may be the bot itself) + * + * @deprecated Backward compatibility, use $left_chat_member instead + * @var User + */ + public $left_chat_participant; + /** * Optional. A chat title was changed to this value * @var string @@ -401,7 +417,9 @@ protected function mapSubObjects(string $key, array $data): TelegramTypes case 'from': case 'forward_from': case 'new_chat_member': + case 'new_chat_participant': case 'left_chat_member': + case 'left_chat_participant': case 'via_bot': return new User($data, $this->logger); case 'new_chat_members': From 54548b5a77bdabd1600930d94d33e022358e94f6 Mon Sep 17 00:00:00 2001 From: "Tomas Palider (DJTommek)" Date: Sat, 13 May 2023 11:22:36 +0200 Subject: [PATCH 10/10] TelegramTypes: added various types to Message type --- src/Telegram/Types/Message.php | 85 ++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index d55a49e..c45e6bf 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -124,6 +124,12 @@ class Message extends TelegramTypes */ public $edit_date = 0; + /** + * Optional. True, if the message can't be forwarded + * @var bool + */ + public $has_protected_content = false; + /** * Optional. The unique identifier of a media message group this message belongs to * @var string @@ -211,6 +217,13 @@ class Message extends TelegramTypes */ public $caption_entities = []; + /** + * Optional. True, if the message media is covered by a spoiler animation + * the caption + * @var bool + */ + public $has_media_spoiler = false; + /** * Optional. Message is a shared contact, information about the contact * @var Contact @@ -325,6 +338,12 @@ class Message extends TelegramTypes */ public $channel_chat_created = false; + /** + * Optional. Service message: auto-delete timer settings changed in the chat + * @see https://core.telegram.org/bots/api#messageautodeletetimerchanged @TODO + */ + public $message_auto_delete_timer_changed; + /** * Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater * than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller @@ -361,6 +380,18 @@ class Message extends TelegramTypes */ public $successful_payment; + /** + * Optional. Service message: a user was shared with the bot + * @see https://core.telegram.org/bots/api#usershared @TODO + */ + public $user_shared; + + /** + * Optional. Service message: a chat was shared with the bot + * @see https://core.telegram.org/bots/api#chatshared @TODO + */ + public $chat_shared; + /** * Optional. The domain name of the website on which the user has logged in * @see https://core.telegram.org/widgets/login @@ -368,6 +399,18 @@ class Message extends TelegramTypes */ public $connected_website = ''; + /** + * Optional. Service message: the user allowed the bot added to the attachment menu to write messages + * @see https://core.telegram.org/bots/api#writeaccessallowed @TODO + */ + public $write_access_allowed; + + /** + * Optional. Telegram Passport data + * @see https://core.telegram.org/bots/api#passportdata @TODO + */ + public $passport_data; + /** * Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live * Location @@ -399,6 +442,48 @@ class Message extends TelegramTypes */ public $forum_topic_reopened; + /** + * Optional. Service message: the 'General' forum topic hidden + * @see https://core.telegram.org/bots/api#generalforumtopichidden @TODO + */ + public $general_forum_topic_hidden; + + /** + * Optional. Service message: the 'General' forum topic unhidden + * @see https://core.telegram.org/bots/api#generalforumtopicunhidden @TODO + */ + public $general_forum_topic_unhidden; + + /** + * Optional. Service message: video chat scheduled + * @see https://core.telegram.org/bots/api#videochatscheduled @TODO + */ + public $video_chat_scheduled; + + /** + * Optional. Service message: video chat started + * @see https://core.telegram.org/bots/api#videochatstarted @TODO + */ + public $video_chat_started; + + /** + * Optional. Service message: video chat ended + * @see https://core.telegram.org/bots/api#videochatended @TODO + */ + public $video_chat_ended; + + /** + * Optional. Service message: new participants invited to a video chat + * @see https://core.telegram.org/bots/api#videochatparticipantsinvited @TODO + */ + public $video_chat_participants_invited; + + /** + * Optional. Service message: data sent by a Web App + * @see https://core.telegram.org/bots/api#webappdata @TODO + */ + public $web_app_data; + /** * @var Markup */