diff --git a/src/Component/Serializer/Parser/BaseJMSParser.php b/src/Component/Serializer/Parser/BaseJMSParser.php index 3503208..8f484d8 100644 --- a/src/Component/Serializer/Parser/BaseJMSParser.php +++ b/src/Component/Serializer/Parser/BaseJMSParser.php @@ -85,6 +85,7 @@ final class BaseJMSParser throw new SyntaxError(sprintf( 'Syntax error, unexpected "%s" (%s)', $this->lexer->token['value'], + // @phpstan-ignore-next-line $this->getConstant($this->lexer->token['type']) )); } @@ -177,7 +178,7 @@ final class BaseJMSParser throw new SyntaxError(sprintf( 'Syntax error, unexpected "%s" (%s), expected was %s', $this->lexer->lookahead['value'], - $this->getConstant($this->lexer->lookahead['type']), + $this->getConstant($this->lexer->lookahead['type']), // @phpstan-ignore-line $this->getConstant($token) )); } diff --git a/src/Model/Response/Loyalty/LoyaltyAccountCreateResponse.php b/src/Model/Response/Loyalty/LoyaltyAccountCreateResponse.php index 9b31845..0591dfe 100644 --- a/src/Model/Response/Loyalty/LoyaltyAccountCreateResponse.php +++ b/src/Model/Response/Loyalty/LoyaltyAccountCreateResponse.php @@ -32,7 +32,7 @@ class LoyaltyAccountCreateResponse extends SuccessResponse * @var \RetailCrm\Api\Model\Entity\Loyalty\LoyaltyAccount * * @JMS\Type("RetailCrm\Api\Model\Entity\Loyalty\LoyaltyAccount") - * @JMS\SerializedName("loyalty_account") + * @JMS\SerializedName("loyaltyAccount") */ public $loyaltyAccount; diff --git a/tests/src/ResourceGroup/LoyaltyTest.php b/tests/src/ResourceGroup/LoyaltyTest.php index bdd6bd5..57723b8 100644 --- a/tests/src/ResourceGroup/LoyaltyTest.php +++ b/tests/src/ResourceGroup/LoyaltyTest.php @@ -59,13 +59,14 @@ class LoyaltyTest extends AbstractApiResourceGroupTestCase { "success": true, "site": "bitrix-test", - "loyalty_account": { + "loyaltyAccount": { "phoneNumber": "88005553125", "cardNumber": "2222 3333 4444 5555", "customer": { "id": 4787 } - } + }, + "warnings": [] } EOF;