From 8dd5d01f690bd173faf4ec924ea48a1a117aa8c6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Fri, 29 May 2026 15:37:42 +0200 Subject: [PATCH] Update bootstrap/helpers/shared.php Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- bootstrap/helpers/shared.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php index 011c86744..c0425a3f0 100644 --- a/bootstrap/helpers/shared.php +++ b/bootstrap/helpers/shared.php @@ -361,7 +361,7 @@ function refreshSession(?Team $team = null): void } if (! $team) { // Fall back to any team the user still belongs to. - $team = User::find(Auth::id())->teams()->first(); + $team = User::query()->find(Auth::id())?->teams()->first(); } }