Skip to content

Commit

Permalink
Need to drop support for PHP 8.1 and Sylius 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed May 20, 2024
1 parent 288798b commit f2a1a40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "8.1", "8.2", "8.3" ]
sylius: [ "~1.12.0", "~1.13.0" ]
php: [ "8.2", "8.3" ]
sylius: [ "~1.13.0" ]
symfony: [ "^6.4" ]
node: [ "20.x" ]
mysql: [ "8.0" ]
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
],
"license": "proprietary",
"require": {
"php": "^8.1",
"guzzlehttp/psr7": "^1.9 || ^2.5",
"php": "^8.2",
"guzzlehttp/psr7": "^2.5",
"php-http/discovery": "^1.19",
"psr/http-factory": "^1.0",
"sylius/sylius": "^1.12 || ^1.13",
"sylius/sylius": "^1.13",
"symfony/webpack-encore-bundle": "^1.17"
},
"require-dev": {
Expand Down
10 changes: 6 additions & 4 deletions tests/Behat/Context/Api/PagolightContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
namespace Tests\Webgriffe\SyliusPagolightPlugin\Behat\Context\Api;

use Behat\Behat\Context\Context;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Psr7\Request;
use Psr\Http\Client\ClientInterface;
use Sylius\Bundle\PayumBundle\Model\PaymentSecurityTokenInterface;
use Sylius\Component\Core\Model\PaymentInterface;
use Sylius\Component\Core\Repository\PaymentRepositoryInterface;
Expand Down Expand Up @@ -87,11 +88,12 @@ protected function getPaymentTokenRepository(): RepositoryInterface

private function notifyPaymentState(PaymentSecurityTokenInterface $token, array $responsePayload): void
{
$this->client->request(
$this->client->sendRequest(new Request(
'POST',
$this->getNotifyUrl($token),
['form_params' => $responsePayload],
);
[],
json_encode(['form_params' => $responsePayload], \JSON_THROW_ON_ERROR),
));
}

private function getNotifyUrl(PaymentSecurityTokenInterface $token): string
Expand Down

0 comments on commit f2a1a40

Please sign in to comment.