Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

-
name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

-
name: Cache dependencies installed with composer
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ${{ env.COMPOSER_CACHE_DIR }}
key: php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
Expand Down
6 changes: 3 additions & 3 deletions src/Types/AcceptedGiftTypes.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class AcceptedGiftTypes extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/Gift.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

/**
* Class Gift
Expand Down
6 changes: 3 additions & 3 deletions src/Types/GiftInfo.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class GiftInfo extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/Gifts.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class Gifts extends BaseType implements TypeInterface
{
Expand Down
12 changes: 8 additions & 4 deletions src/Types/OwnedGift.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\\Api\\InvalidArgumentException;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;
use TelegramBot\Api\InvalidArgumentException;

class OwnedGift extends BaseType implements TypeInterface
{
Expand All @@ -24,6 +24,10 @@ class OwnedGift extends BaseType implements TypeInterface
protected $senderUser;
protected $sendDate;

final public function __construct()
{
}

/**
* @psalm-suppress LessSpecificReturnStatement,MoreSpecificReturnType
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Types/OwnedGiftRegular.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

class OwnedGiftRegular extends OwnedGift
{
Expand Down
2 changes: 1 addition & 1 deletion src/Types/OwnedGiftUnique.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

class OwnedGiftUnique extends OwnedGift
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/OwnedGifts.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class OwnedGifts extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/StarAmount.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class StarAmount extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGift.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGift extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGiftBackdrop.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGiftBackdrop extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGiftBackdropColors.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGiftBackdropColors extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGiftInfo.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGiftInfo extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGiftModel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGiftModel extends BaseType implements TypeInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Types/UniqueGiftSymbol.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TelegramBot\\Api\\Types;
namespace TelegramBot\Api\Types;

use TelegramBot\\Api\\BaseType;
use TelegramBot\\Api\\TypeInterface;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\TypeInterface;

class UniqueGiftSymbol extends BaseType implements TypeInterface
{
Expand Down