Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit dd6f583

Browse files
committed
Make PHPCS happy and fix lowest dependency warning message
1 parent f9ffe57 commit dd6f583

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ before_script:
1414
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
1515
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
1616
script:
17-
- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
17+
# Setting stty prevents warning on lowest dependencies: https://github.com/sebastianbergmann/phpunit/issues/1976
18+
- stty cols 80; vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
1819
- vendor/bin/phpcs src/ --standard=psr2 -sp
1920
after_script:
2021
- wget https://scrutinizer-ci.com/ocular.phar

src/Telegram/Methods/GetUpdates.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ class GetUpdates extends TelegramMethods
5050
public $timeout = 0;
5151

5252
/**
53-
* List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”,
54-
* “callback_query”] to only receive updates of these types. See Update for a complete list of available update
55-
* types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous
56-
* setting will be used.
53+
* List the types of updates you want your bot to receive. For example, specify
54+
* [“message”, “edited_channel_post”, “callback_query”]
55+
* to only receive updates of these types. See Update for a complete list of available update types. Specify an
56+
* empty list to receive all updates regardless of type (default). If not specified, the previous setting will be
57+
* used.
5758
*
5859
* Please note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted
5960
* updates may be received for a short period of time.

src/Telegram/Methods/SetWebhook.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,18 @@ class SetWebhook extends TelegramMethods
4747

4848
/**
4949
* Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to
50-
* 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s throughput
50+
* 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s
51+
* throughput
5152
* @var int
5253
*/
5354
public $max_connections = 40;
5455

5556
/**
56-
* List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”,
57-
* “callback_query”] to only receive updates of these types. See Update for a complete list of available update
58-
* types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous
59-
* setting will be used.
57+
* List the types of updates you want your bot to receive. For example, specify
58+
* [“message”, “edited_channel_post”, “callback_query”]
59+
* to only receive updates of these types. See Update for a complete list of available update types. Specify an
60+
* empty list to receive all updates regardless of type (default). If not specified, the previous setting will be
61+
* used.
6062
*
6163
* Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted
6264
* updates may be received for a short period of time.

0 commit comments

Comments
 (0)