From 1b75a04cf98103cdf52868d2af392ffc33accdde Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Sat, 27 Jan 2024 19:37:04 +0300 Subject: [PATCH] Compability with guzzlehttp/guzzle:^7.0 --- composer.json | 2 +- tests/AtolOnlineClient/AtolOnlineApiTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8e59991..8156e36 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "php": ">=7.2", "ext-curl": "*", "ext-json": "*", - "guzzlehttp/guzzle": "~6.3", + "guzzlehttp/guzzle": "~6.3|^7.0", "jms/serializer": "^0.12|^1.0|^2.0|^3.0", "symfony/validator": "~2.8|~3.0|~4.0|^5.0", "doctrine/cache": "~1.6", diff --git a/tests/AtolOnlineClient/AtolOnlineApiTest.php b/tests/AtolOnlineClient/AtolOnlineApiTest.php index bad56d4..ad20a94 100644 --- a/tests/AtolOnlineClient/AtolOnlineApiTest.php +++ b/tests/AtolOnlineClient/AtolOnlineApiTest.php @@ -143,7 +143,7 @@ class AtolOnlineApiTest extends TestCase */ public function testGetTokenBadResponse(): void { - $api = $this->getApi([new BadResponseException('', new Request('GET', 'test'))]); + $api = $this->getApi([new BadResponseException('', new Request('GET', 'test'), new Response())]); $this->assertFalse($this->callMethod($api, 'getToken')); }