Skip to content

Commit

Permalink
update ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan committed Feb 2, 2024
1 parent 5f7fde4 commit 9e66bdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 5 additions & 1 deletion src/Context/ApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check warning on line 142 in src/Context/ApiContext.php

View check run for this annotation

Codecov / codecov/patch

src/Context/ApiContext.php#L140-L142

Added lines #L140 - L142 were not covered by tests
) {
$postFields = $this->requestParams;
}

Expand Down

0 comments on commit 9e66bdf

Please sign in to comment.