Skip to content

Commit

Permalink
fix: fix error in php8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
leeqvip committed Nov 29, 2024
1 parent 2fe2143 commit 0ff8697
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1, 8.2, 8.3 ]
php: [ 8.0, 8.1, 8.2, 8.3, 8.4 ]

name: PHP${{ matrix.php }}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"license": "Apache-2.0",
"require": {
"php": ">=8.0",
"casbin/casbin": "~4.0",
"casbin/casbin": "~4.0.2",
"topthink/framework": "^8.0.3",
"topthink/think-migration": "^3.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/traits/Configurable.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ trait Configurable
*
* @return mixed
*/
protected function config(string $key = null, $default = null)
protected function config(string $key, $default = null)
{
$driver = config('tauthz.default');
return config('tauthz.enforcers.' . $driver . '.' . $key, $default);
Expand Down

0 comments on commit 0ff8697

Please sign in to comment.