Skip to content

Commit b36ba4b

Browse files
committed
Minor cleanups.
1 parent bd9fb12 commit b36ba4b

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ Here is a list of available extra parameters:
161161
| *string* | *e.g.* `'https://example.com/manager.php'` |
162162
| certificate | Path to a self-signed certificate (if necessary). |
163163
| *string* | *e.g.* `__DIR__ . '/server.crt'` |
164-
| max_connections | Maximum allowed simultaneous HTTPS connections to the webhook |
164+
| max_connections | Maximum allowed simultaneous HTTPS connections to the webhook. |
165165
| *int* | *e.g.* `20` |
166-
| allowed_updates | List the types of updates you want your bot to receive |
166+
| allowed_updates | List the types of updates you want your bot to receive. |
167167
| *array* | *e.g.* `['message', 'edited_channel_post', 'callback_query']` |
168168
| logging | Path(s) where to the log files should be put. This is an array that can contain all 3 log file paths (`error`, `debug` and `update`). |
169169
| *array* | *e.g.* `['error' => __DIR__ . '/php-telegram-bot-error.log']` |

src/BotManager.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
use NPM\TelegramBotManager\Exception\InvalidAccessException;
1818
use NPM\TelegramBotManager\Exception\InvalidWebhookException;
1919

20-
/**
21-
* Class BotManager.php
22-
*
23-
* Leave all member variables public to allow easy modification.
24-
*
25-
* @package NPM\TelegramBotManager
26-
*/
2720
class BotManager
2821
{
2922
/**
@@ -233,7 +226,7 @@ public function validateAndSetWebhook(): self
233226
*
234227
* @return \NPM\TelegramBotManager\BotManager
235228
*/
236-
private function handleOutput($output): self
229+
private function handleOutput(string $output): self
237230
{
238231
$this->output .= $output;
239232

0 commit comments

Comments
 (0)