Skip to content

Commit 8f83d0e

Browse files
authored
Fix workflow (#505)
1 parent 074eba8 commit 8f83d0e

17 files changed

+48
-44
lines changed

.github/workflows/cs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
-
3434
name: Cache dependencies installed with composer
35-
uses: actions/cache@v2
35+
uses: actions/cache@v4
3636
with:
3737
path: ${{ env.COMPOSER_CACHE_DIR }}
3838
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

.github/workflows/psalm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
-
3434
name: Cache dependencies installed with composer
35-
uses: actions/cache@v2
35+
uses: actions/cache@v4
3636
with:
3737
path: ${{ env.COMPOSER_CACHE_DIR }}
3838
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}

src/Types/AcceptedGiftTypes.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
77

88
class AcceptedGiftTypes extends BaseType implements TypeInterface
99
{

src/Types/Gift.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
77

88
/**
99
* Class Gift

src/Types/GiftInfo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
77

88
class GiftInfo extends BaseType implements TypeInterface
99
{

src/Types/Gifts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
77

88
class Gifts extends BaseType implements TypeInterface
99
{

src/Types/OwnedGift.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
7-
use TelegramBot\\Api\\InvalidArgumentException;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
7+
use TelegramBot\Api\InvalidArgumentException;
88

99
class OwnedGift extends BaseType implements TypeInterface
1010
{
@@ -24,6 +24,10 @@ class OwnedGift extends BaseType implements TypeInterface
2424
protected $senderUser;
2525
protected $sendDate;
2626

27+
final public function __construct()
28+
{
29+
}
30+
2731
/**
2832
* @psalm-suppress LessSpecificReturnStatement,MoreSpecificReturnType
2933
*/

src/Types/OwnedGiftRegular.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

55
class OwnedGiftRegular extends OwnedGift
66
{

src/Types/OwnedGiftUnique.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

55
class OwnedGiftUnique extends OwnedGift
66
{

src/Types/OwnedGifts.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TelegramBot\\Api\\Types;
3+
namespace TelegramBot\Api\Types;
44

5-
use TelegramBot\\Api\\BaseType;
6-
use TelegramBot\\Api\\TypeInterface;
5+
use TelegramBot\Api\BaseType;
6+
use TelegramBot\Api\TypeInterface;
77

88
class OwnedGifts extends BaseType implements TypeInterface
99
{

0 commit comments

Comments
 (0)