Skip to content

Commit 9734922

Browse files
authored
Merge pull request #10 from SocialConnect/php-version
Bump up PHP version and dependencies
2 parents 7559218 + 5dca97e commit 9734922

5 files changed

Lines changed: 38 additions & 1582 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php-version: ['7.2', '7.4', '8.0', '8.1', '8.2']
11+
php-version: ['8.0', '8.5']
1212
composer-opts: ['']
1313
include:
14-
- php-version: '7.1'
14+
- php-version: '7.4'
1515
composer-opts: '--prefer-lowest'
1616

1717
steps:
@@ -24,16 +24,7 @@ jobs:
2424
coverage: xdebug
2525

2626
- name: Composer install
27-
run: |
28-
case "${{ matrix.php-version }}" in
29-
8*)
30-
composer remove --dev squizlabs/php_codesniffer phpstan/phpstan-shim phpunit/phpunit
31-
composer require --dev phpunit/phpunit:^8.5
32-
;;
33-
*)
34-
composer update ${{ matrix.composer-opts }}
35-
;;
36-
esac
27+
run: composer update ${{ matrix.composer-opts }}
3728
- name: Run PHPUnit
3829
run: |
3930
if [[ ${{ matrix.php-version }} == '7.4' ]]; then

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
22
vendor
33
.phpunit.result.cache
4-
build
4+
build
5+
composer.lock

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
],
99
"type": "library",
1010
"require": {
11-
"php": ">=7.1",
11+
"php": "^7.4|^8.0",
1212
"ext-json": "*"
1313
},
1414
"require-dev": {
15-
"phpunit/phpunit": "^7.5",
16-
"phpstan/phpstan-shim": "^0.11.12"
15+
"phpunit/phpunit": "^9.6",
16+
"phpstan/phpstan": "^2.1"
1717
},
1818
"suggest": {
1919
"ext-openssl": "Please install openssl extension to use RS encryption"

0 commit comments

Comments
 (0)