Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: readme #1

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
41 changes: 41 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -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\\<Yproximite\\\\Payum\\\\Payzen\\\\PayzenGatewayFactory\\>\\:\\:isSubclassOf\\(\\) with 'Payum\\\\\\\\Core…' will always evaluate to true\\.$#"
count: 1
path: tests/PayzenGatewayFactoryTest.php
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
# - phpstan-baseline.neon
- phpstan-baseline.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon

parameters:
Expand Down
Loading