Skip to content

Commit

Permalink
Fix Update. Rename $removedChatBoost to $chatBoostRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
BoShurik committed Aug 14, 2024
1 parent ae151c2 commit 57b338e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Types/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class Update extends BaseType implements TypeInterface
*
* @var ChatBoostRemoved|null
*/
protected $removedChatBoost;
protected $chatBoostRemoved;

/**
* @return int
Expand Down Expand Up @@ -529,15 +529,15 @@ public function setChatBoost($chatBoost)
*/
public function getChatBoostRemoved()
{
return $this->removedChatBoost;
return $this->chatBoostRemoved;
}

/**
* @param ChatBoostRemoved|null $removedChatBoost
* @param ChatBoostRemoved|null $chatBoostRemoved
* @return void
*/
public function setChatBoostRemoved($removedChatBoost)
public function setChatBoostRemoved($chatBoostRemoved)
{
$this->removedChatBoost = $removedChatBoost;
$this->chatBoostRemoved = $chatBoostRemoved;
}
}
4 changes: 4 additions & 0 deletions tests/AbstractTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ public function testFromResponseFull()

$this->assertInstanceOf(static::getType(), $item);
$this->assertFullItem($item);

$innerJson = $item->toJson();

$this->assertIsString($innerJson);
}

/**
Expand Down

0 comments on commit 57b338e

Please sign in to comment.