Skip to content

Commit

Permalink
Make getCurrentUser return type nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
oddvalue authored Apr 15, 2024
1 parent e81c071 commit b6d1542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaravelDrafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LaravelDrafts
{
protected bool $withDrafts = false;

public function getCurrentUser(): Authenticatable
public function getCurrentUser(): ?Authenticatable
{
return Auth::guard(config('drafts.auth.guard'))->user();
}
Expand Down

0 comments on commit b6d1542

Please sign in to comment.