diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd5de5a..f55338b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,12 @@ jobs: tests: runs-on: ubuntu-latest - name: "PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}" + name: "PHP ${{ matrix.php }}" strategy: fail-fast: false matrix: php: [8.1, 8.2, 8.3, 8.4] - symfony: [^5.4, ^6.0, ^7.0] env: APP_ENV: test @@ -43,12 +42,6 @@ jobs: restore-keys: | ${{ runner.os }}-php-${{ matrix.php }}-composer- - - name: Restrict Symfony version - if: matrix.symfony != '' - run: | - composer global require --no-progress --no-scripts --no-plugins "symfony/flex:^1.10" - composer config extra.symfony.require "${{ matrix.symfony }}" - - run: symfony composer install --no-interaction - run: symfony composer validate --strict diff --git a/README.md b/README.md index f13f000..b011af9 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ payum: certif_test: 'change it' # required sandbox: true hash_algorithm: 'algo-sha1' # or 'algo-hmac-sha256' - endpoint: 'system-pay' # 'system-pay', 'sogecommerce' + endpoint: 'systempay' # 'systempay', 'sogecommerce', 'payzen' ``` ### With Payum @@ -69,7 +69,7 @@ $payum = (new PayumBuilder()) 'certif_test' => 'change it', // required 'sandbox' => true, 'hash_algorithm' => 'algo-sha1' // or 'algo-hmac-sha256' - 'endpoint' => 'system-pay' // 'system-pay', 'sogecommerce' + 'endpoint' => 'systempay' // 'system-pay', 'sogecommerce', 'payzen' ]) ->getPayum() diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon new file mode 100644 index 0000000..ed00c72 --- /dev/null +++ b/phpstan-baseline.neon @@ -0,0 +1,41 @@ +parameters: + ignoreErrors: + - + message: "#^Property Yproximite\\\\Payum\\\\Payzen\\\\Tests\\\\Action\\\\CaptureActionTest\\:\\:\\$requestClass \\(Payum\\\\Core\\\\Request\\\\Generic\\) does not accept default value of type string\\.$#" + count: 1 + path: tests/Action/CaptureActionTest.php + + - + message: "#^Property Yproximite\\\\Payum\\\\Payzen\\\\Tests\\\\Action\\\\ConvertPaymentActionTest\\:\\:\\$requestClass \\(Payum\\\\Core\\\\Request\\\\Generic\\) does not accept default value of type string\\.$#" + count: 1 + path: tests/Action/ConvertPaymentActionTest.php + + - + message: "#^Call to an undefined method PHPUnit\\\\Framework\\\\MockObject\\\\MockObject\\|Yproximite\\\\Payum\\\\Payzen\\\\Api\\:\\:expects\\(\\)\\.$#" + count: 1 + path: tests/Action/NotifyActionTest.php + + - + message: "#^Property Yproximite\\\\Payum\\\\Payzen\\\\Tests\\\\Action\\\\NotifyActionTest\\:\\:\\$requestClass \\(Payum\\\\Core\\\\Request\\\\Generic\\) does not accept default value of type string\\.$#" + count: 1 + path: tests/Action/NotifyActionTest.php + + - + message: "#^Property Payum\\\\Core\\\\Tests\\\\GenericActionTest\\:\\:\\$action \\(Payum\\\\Core\\\\Action\\\\ActionInterface\\) does not accept object\\.$#" + count: 1 + path: tests/Action/StatusActionTest.php + + - + message: "#^Property Yproximite\\\\Payum\\\\Payzen\\\\Tests\\\\Action\\\\StatusActionTest\\:\\:\\$requestClass \\(Payum\\\\Core\\\\Request\\\\Generic\\) does not accept default value of type string\\.$#" + count: 1 + path: tests/Action/StatusActionTest.php + + - + message: "#^Cannot call method add\\(\\) on DateTimeImmutable\\|false\\.$#" + count: 2 + path: tests/PaymentConfigGeneratorTest.php + + - + message: "#^Call to method ReflectionClass\\\\:\\:isSubclassOf\\(\\) with 'Payum\\\\\\\\Coreā€¦' will always evaluate to true\\.$#" + count: 1 + path: tests/PayzenGatewayFactoryTest.php diff --git a/phpstan.neon b/phpstan.neon index c356712..28aa754 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,5 +1,5 @@ includes: -# - phpstan-baseline.neon + - phpstan-baseline.neon - vendor/phpstan/phpstan-strict-rules/rules.neon parameters: