From 9e66bdf082769dd6a0b946068c8b25c4980ea52b Mon Sep 17 00:00:00 2001 From: Vardan Date: Fri, 2 Feb 2024 22:32:31 +0200 Subject: [PATCH] update ci.yaml --- .github/workflows/ci.yaml | 6 +++++- composer.json | 2 +- src/Context/ApiContext.php | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5b55e30..261a638 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,10 @@ jobs: - '5.4.*' - '6.0.*' - '6.2.*' + - '7.0.*' + exclude: + - php: '8.1' + symfony-versions: '7.0.*' include: - php: '7.4' symfony-versions: '^4.4' @@ -34,7 +38,7 @@ jobs: - description: 'Log Code Coverage' php: '8.2' coverage: 'xdebug' - symfony-versions: '^6.2' + symfony-versions: '^7.0' name: PHP ${{ matrix.php }} Symfony ${{ matrix.symfony-versions }} ${{ matrix.description }} steps: diff --git a/composer.json b/composer.json index 875dde3..70b553b 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "license": "MIT", "require": { "ext-json": "*", - "php": "^7.4 || ^8.0", + "php": "^7.4 || ^8.0 || ^8.2", "behat/behat": "^3.14", "symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0 || ^7.0", "symfony/http-client": "^4.4 || ^5.4 || ^6.0 || ^7.0", diff --git a/src/Context/ApiContext.php b/src/Context/ApiContext.php index 0e99d3f..aa6273d 100644 --- a/src/Context/ApiContext.php +++ b/src/Context/ApiContext.php @@ -136,7 +136,11 @@ public function iSendRequestToRoute( if (Request::METHOD_GET === $method) { $queryString = http_build_query($this->requestParams); - } elseif (Request::METHOD_POST === $method || Request::METHOD_PATCH === $method || Request::METHOD_PUT === $method) { + } elseif ( + Request::METHOD_POST === $method + || Request::METHOD_PATCH === $method + || Request::METHOD_PUT === $method + ) { $postFields = $this->requestParams; }