Skip to content

Commit fd813ac

Browse files
committed
Fix incorrect TelegramException throw tags.
1 parent afc0bc1 commit fd813ac

File tree

65 files changed

+10
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+10
-105
lines changed

src/Commands/AdminCommands/CleanupCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ private function getQueries($settings)
339339
* Execution if MySQL is required but not available
340340
*
341341
* @return \Longman\TelegramBot\Entities\ServerResponse
342+
* @throws TelegramException
342343
*/
343344
public function executeNoDb()
344345
{

src/Commands/Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ protected function removeNonPrivateMessage()
400400
* @param array $data
401401
*
402402
* @return \Longman\TelegramBot\Entities\ServerResponse
403+
* @throws \Longman\TelegramBot\Exception\TelegramException
403404
*/
404405
public function replyToChat($text, array $data = [])
405406
{
@@ -420,6 +421,7 @@ public function replyToChat($text, array $data = [])
420421
* @param array $data
421422
*
422423
* @return \Longman\TelegramBot\Entities\ServerResponse
424+
* @throws \Longman\TelegramBot\Exception\TelegramException
423425
*/
424426
public function replyToUser($text, array $data = [])
425427
{

src/Commands/SystemCommands/CallbackqueryCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class CallbackqueryCommand extends SystemCommand
4242
* Command execute method
4343
*
4444
* @return mixed
45-
* @throws \Longman\TelegramBot\Exception\TelegramException
4645
*/
4746
public function execute()
4847
{

src/Commands/SystemCommands/ChannelchatcreatedCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ChannelchatcreatedCommand extends SystemCommand
3838
* Command execute method
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/ChannelpostCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ChannelpostCommand extends SystemCommand
3838
* Execute command
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/ChoseninlineresultCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class ChoseninlineresultCommand extends SystemCommand
3838
* Command execute method
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/DeletechatphotoCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class DeletechatphotoCommand extends SystemCommand
3838
* Command execute method
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/EditedchannelpostCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class EditedchannelpostCommand extends SystemCommand
3838
* Execute command
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/EditedmessageCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class EditedmessageCommand extends SystemCommand
3838
* Command execute method
3939
*
4040
* @return mixed
41-
* @throws \Longman\TelegramBot\Exception\TelegramException
4241
*/
4342
public function execute()
4443
{

src/Commands/SystemCommands/GenericCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class GenericCommand extends SystemCommand
3636
/**
3737
* Command execute method
3838
*
39-
* @return mixed
40-
* @throws \Longman\TelegramBot\Exception\TelegramException
39+
* @return \Longman\TelegramBot\Entities\ServerResponse
4140
*/
4241
public function execute()
4342
{

0 commit comments

Comments
 (0)