Skip to content

Commit aa449e9

Browse files
authored
Add support for php8.1 (#25)
1 parent 9d9e455 commit aa449e9

21 files changed

+308
-4157
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
/composer.lock export-ignore
66
/CODE_OF_CONDUCT.md export-ignore
77
/CONTRIBUTING.md export-ignore
8+
/SECURITY.md export-ignore
89
/phpunit.xml.dist export-ignore
910
/docs export-ignore
1011
/tests export-ignore
1112
/.github export-ignore
13+
/phpstan.neon export-ignore
14+
/.editorconfig export-ignore
15+
/.gitbook.yaml export-ignore
1216

1317
*.php diff=php

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [8.0, 7.4]
12+
php: [8.1, 8.0, 7.4]
1313
stability: [prefer-stable]
1414

1515
name: PHP${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ testbench.yaml
99
vendor
1010
.php-cs-fixer.cache
1111
.phpunit.cache
12+
composer.lock

SECURITY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
`paypal-checkout-sdk` Package requires PHP 7.4 or higher. If you are using an older version of php this package may not function correctly.
66

77
| Version | Supported |
8-
| ------- | ------------------ |
8+
|---------|--------------------|
99
| 3.0.x | :white_check_mark: |
1010
| 2.0.x | :white_check_mark: |
1111
| < 2.0 | :x: |

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.4|^8.0",
20+
"php": "^7.4|^8.0|^8.1",
2121
"ext-json": "*",
2222
"brick/money": "^0.5.2",
23-
"phpjuice/paypal-http-client": "^1.0"
23+
"phpjuice/paypal-http-client": "1.0.0"
2424
},
2525
"require-dev": {
2626
"squizlabs/php_codesniffer": "^3.4",
@@ -40,8 +40,8 @@
4040
"minimum-stability": "dev",
4141
"prefer-stable": true,
4242
"scripts": {
43-
"test": "vendor/bin/pest",
44-
"analyse": "phpstan analyse src tests",
43+
"test": "vendor/bin/pest --colors=always",
44+
"analyse": "phpstan analyse --ansi --debug",
4545
"php-cs-fixer": [
4646
"php-cs-fixer fix src --rules=@PSR2",
4747
"php-cs-fixer fix tests --rules=@PSR2"

0 commit comments

Comments
 (0)