From 15d9c63b1461b3f1e628abae9dc924b9b16632ab Mon Sep 17 00:00:00 2001 From: JonLee Date: Sat, 17 May 2025 13:30:18 +0800 Subject: [PATCH 1/3] BREAKING CHANGE: upgrade to PHP 8.0 and PHP-Casbin 4.0 --- composer.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 0fae1aa..ae5c259 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ ], "license": "Apache-2.0", "require": { - "php": ">=7.2.0", - "cakephp/cakephp": "~4.0|~5.0", - "casbin/casbin": "~3.1" + "php": ">=8.1", + "cakephp/cakephp": "~5.0", + "casbin/casbin": "~4.0" }, "require-dev": { - "phpunit/phpunit": "~8.5.0 || ^9.3" + "phpunit/phpunit": "^10.1" }, "autoload": { "psr-4": { From 4682fee0a5a8edf7fdad0ef0f53a62c76b8da23d Mon Sep 17 00:00:00 2001 From: JonLee Date: Sat, 17 May 2025 13:53:56 +0800 Subject: [PATCH 2/3] ci: update test matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3627508..fe3f0ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.3, 7.4, 8.0, 8.1, 8.2] + php: [8.1, 8.2, 8.3, 8.4] stability: [prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.stability }} From 3db7f98de54aa5acad640d64384e6a514ef5d042 Mon Sep 17 00:00:00 2001 From: JonLee Date: Sat, 17 May 2025 14:05:23 +0800 Subject: [PATCH 3/3] test: upgrade phpunit.xml --- phpunit.xml.dist | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 3fe8c05..e0e8033 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,11 @@ - + @@ -13,15 +14,21 @@ + + + + + + + - - - src/ - - - - - - - + + + ./src + + +