Skip to content

Commit 28577dc

Browse files
Make return type nullable
1 parent 514cb7e commit 28577dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basic-usage/super-admin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ use App\Models\User; // could be any Authorizable model
5151
/**
5252
* Perform pre-authorization checks on the model.
5353
*/
54-
public function before(User $user, string $ability): bool|null
54+
public function before(User $user, string $ability): ?bool
5555
{
5656
if ($user->hasRole('Super Admin')) {
5757
return true;

0 commit comments

Comments
 (0)