Skip to content

Commit

Permalink
Make return type nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Galang Aidil Akbar committed Sep 14, 2024
1 parent 514cb7e commit 28577dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-usage/super-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use App\Models\User; // could be any Authorizable model
/**
* Perform pre-authorization checks on the model.
*/
public function before(User $user, string $ability): bool|null
public function before(User $user, string $ability): ?bool
{
if ($user->hasRole('Super Admin')) {
return true;
Expand Down

0 comments on commit 28577dc

Please sign in to comment.