Skip to content

Commit

Permalink
Merge pull request #2719 from galangaidilakbar/main
Browse files Browse the repository at this point in the history
[Docs] use more modern syntax for nullable return type
  • Loading branch information
drbyte committed Sep 19, 2024
2 parents 19e1a4a + 28577dc commit 4dd1ab7
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 4dd1ab7

Please sign in to comment.