Skip to content

Commit 59cda46

Browse files
authored
Merge pull request #902 from php-telegram-bot/feature/add-phpstan
Add PHPStan
2 parents 70198f8 + 26f17cc commit 59cda46

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Entities/Games/Game.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
namespace Longman\TelegramBot\Entities\Games;
1212

13+
use Longman\TelegramBot\Entities\Animation;
1314
use Longman\TelegramBot\Entities\Entity;
1415
use Longman\TelegramBot\Entities\MessageEntity;
16+
use Longman\TelegramBot\Entities\PhotoSize;
1517

1618
/**
1719
* Class Game
@@ -45,7 +47,7 @@ protected function subEntities()
4547
* This method overrides the default getPhoto method
4648
* and returns a nice array of PhotoSize objects.
4749
*
48-
* @return null|PhotoSize[]
50+
* @return null|\Longman\TelegramBot\Entities\PhotoSize[]
4951
*/
5052
public function getPhoto()
5153
{
@@ -60,7 +62,7 @@ public function getPhoto()
6062
* This method overrides the default getTextEntities method
6163
* and returns a nice array of MessageEntity objects.
6264
*
63-
* @return null|MessageEntity[]
65+
* @return null|\Longman\TelegramBot\Entities\MessageEntity[]
6466
*/
6567
public function getTextEntities()
6668
{

src/Entities/Games/GameHighScore.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace Longman\TelegramBot\Entities\Games;
1212

1313
use Longman\TelegramBot\Entities\Entity;
14+
use Longman\TelegramBot\Entities\User;
1415

1516
/**
1617
* Class GameHighScore

0 commit comments

Comments
 (0)