Skip to content

Commit 6101ec3

Browse files
authored
Merge pull request #27 from vrajroham/php-8.0-support
[WIP] PHP 8.0 support
2 parents 2ddd359 + b802dfb commit 6101ec3

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

.github/workflows/php.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,33 @@ jobs:
3636

3737
- name: Run test suite
3838
run: composer run-script test
39+
40+
build_php_80:
41+
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v2
46+
47+
- name: Setup PHP with PECL extension
48+
uses: shivammathur/setup-php@v2
49+
with:
50+
php-version: '8.0'
51+
52+
- name: Validate composer.json and composer.lock
53+
run: composer validate --strict
54+
55+
- name: Cache Composer packages
56+
id: composer-cache
57+
uses: actions/cache@v2
58+
with:
59+
path: vendor
60+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
61+
restore-keys: |
62+
${{ runner.os }}-php-
63+
64+
- name: Install dependencies
65+
run: composer install --prefer-dist --no-progress
66+
67+
- name: Run test suite
68+
run: composer run-script test

composer.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^7.3",
21-
"bitpay/sdk": "~4.0"
20+
"php": ">=7.3 || ^8.0",
21+
"bitpay/sdk": "~v5.2"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": ">=7.0"
24+
"phpunit/phpunit": ">=9.5"
2525
},
2626
"autoload": {
2727
"psr-4": {
@@ -49,6 +49,5 @@
4949
"LaravelBitpay": "Vrajroham\\LaravelBitpay\\LaravelBitpayFacade"
5050
}
5151
}
52-
},
53-
"minimum-stability": "dev"
52+
}
5453
}

0 commit comments

Comments
 (0)