Skip to content

Commit 0ff8697

Browse files
committed
fix: fix error in php8.4
1 parent 2fe2143 commit 0ff8697

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: true
2121
matrix:
22-
php: [ 8.0, 8.1, 8.2, 8.3 ]
22+
php: [ 8.0, 8.1, 8.2, 8.3, 8.4 ]
2323

2424
name: PHP${{ matrix.php }}
2525

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"license": "Apache-2.0",
2222
"require": {
2323
"php": ">=8.0",
24-
"casbin/casbin": "~4.0",
24+
"casbin/casbin": "~4.0.2",
2525
"topthink/framework": "^8.0.3",
2626
"topthink/think-migration": "^3.1.0"
2727
},

src/traits/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait Configurable
1212
*
1313
* @return mixed
1414
*/
15-
protected function config(string $key = null, $default = null)
15+
protected function config(string $key, $default = null)
1616
{
1717
$driver = config('tauthz.default');
1818
return config('tauthz.enforcers.' . $driver . '.' . $key, $default);

0 commit comments

Comments
 (0)