diff --git a/src/Types/Update.php b/src/Types/Update.php index 5ad03a9c..0294b71e 100644 --- a/src/Types/Update.php +++ b/src/Types/Update.php @@ -196,7 +196,7 @@ class Update extends BaseType implements TypeInterface * * @var ChatBoostRemoved|null */ - protected $removedChatBoost; + protected $chatBoostRemoved; /** * @return int @@ -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; } } diff --git a/tests/AbstractTypeTest.php b/tests/AbstractTypeTest.php index de0a4926..ce9b0253 100644 --- a/tests/AbstractTypeTest.php +++ b/tests/AbstractTypeTest.php @@ -58,6 +58,10 @@ public function testFromResponseFull() $this->assertInstanceOf(static::getType(), $item); $this->assertFullItem($item); + + $innerJson = $item->toJson(); + + $this->assertIsString($innerJson); } /**