From 57b338ecd81170dee9f85d6b8d14484e4f720c2a Mon Sep 17 00:00:00 2001 From: BoShurik Date: Wed, 14 Aug 2024 11:09:32 +0300 Subject: [PATCH] Fix Update. Rename $removedChatBoost to $chatBoostRemoved --- src/Types/Update.php | 10 +++++----- tests/AbstractTypeTest.php | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) 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); } /**