Skip to content

Commit 67ac505

Browse files
committed
BREAKING CHANGE: upgrade to PHP 8.0 and PHP-Casbin 4.0
1 parent d3c171a commit 67ac505

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/build.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ jobs:
2323
strategy:
2424
fail-fast: true
2525
matrix:
26-
php: [ 7.2, 7.3,7.4,8.0 ]
26+
php: [ 8.0, 8.1, 8.2, 8.3, 8.4 ]
2727

28-
stability: [ prefer-lowest, prefer-stable ]
29-
30-
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
28+
name: PHP ${{ matrix.php }}
3129

3230
steps:
3331
- name: Checkout code
@@ -57,7 +55,7 @@ jobs:
5755
COVERALLS_PARALLEL: true
5856
COVERALLS_FLAG_NAME: ${{ runner.os }} - ${{ matrix.php }}
5957
run: |
60-
composer global require php-coveralls/php-coveralls:^2.4
58+
composer global require php-coveralls/php-coveralls:^2.7
6159
php-coveralls --coverage_clover=build/logs/clover.xml -v
6260
6361
upload-coverage:

composer.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@
2222
"test": "vendor/bin/phpunit"
2323
},
2424
"require": {
25-
"php": ">=7.2",
26-
"codeigniter4/framework": "^4",
27-
"casbin/casbin": "^3.21.6",
28-
"casbin/psr3-bridge": "^1.1"
25+
"php": "^8.1",
26+
"codeigniter4/framework": "^4.5",
27+
"casbin/casbin": "^4.0.2"
2928
},
3029
"autoload": {
3130
"psr-4": {
3231
"Casbin\\CodeIgniter\\": "src/"
3332
}
3433
},
3534
"require-dev": {
36-
"phpunit/phpunit": "^7.0|^8.0|^9.0",
37-
"php-coveralls/php-coveralls": "^2.1"
35+
"phpunit/phpunit": "^9.0"
3836
},
3937
"autoload-dev": {
4038
"psr-4": {

0 commit comments

Comments
 (0)