Skip to content

Commit

Permalink
Merge pull request #482 from BoShurik/fixes
Browse files Browse the repository at this point in the history
Fix Update. Rename $removedChatBoost to $chatBoostRemoved
  • Loading branch information
BoShurik authored Aug 14, 2024
2 parents ae151c2 + 57b338e commit 532db2b
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 532db2b

Please sign in to comment.