Skip to content

Commit

Permalink
Add support for php8.1 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdcodes authored Feb 18, 2022
1 parent 9d9e455 commit aa449e9
Show file tree
Hide file tree
Showing 21 changed files with 308 additions and 4,157 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@
/composer.lock export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
/SECURITY.md export-ignore
/phpunit.xml.dist export-ignore
/docs export-ignore
/tests export-ignore
/.github export-ignore
/phpstan.neon export-ignore
/.editorconfig export-ignore
/.gitbook.yaml export-ignore

*.php diff=php
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 7.4]
php: [8.1, 8.0, 7.4]
stability: [prefer-stable]

name: PHP${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ testbench.yaml
vendor
.php-cs-fixer.cache
.phpunit.cache
composer.lock
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
`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.

| Version | Supported |
| ------- | ------------------ |
|---------|--------------------|
| 3.0.x | :white_check_mark: |
| 2.0.x | :white_check_mark: |
| < 2.0 | :x: |
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^7.4|^8.0|^8.1",
"ext-json": "*",
"brick/money": "^0.5.2",
"phpjuice/paypal-http-client": "^1.0"
"phpjuice/paypal-http-client": "1.0.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.4",
Expand All @@ -40,8 +40,8 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"test": "vendor/bin/pest",
"analyse": "phpstan analyse src tests",
"test": "vendor/bin/pest --colors=always",
"analyse": "phpstan analyse --ansi --debug",
"php-cs-fixer": [
"php-cs-fixer fix src --rules=@PSR2",
"php-cs-fixer fix tests --rules=@PSR2"
Expand Down
Loading

0 comments on commit aa449e9

Please sign in to comment.