From 898459198d4334ab1ceeb5a3e40cbf17cbefdccc Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 22 Mar 2026 07:00:27 +0100 Subject: [PATCH] Fix null pointer. --- app/Support/Binder/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Binder/Date.php b/app/Support/Binder/Date.php index 6e2890fdd5..fed9673ad7 100644 --- a/app/Support/Binder/Date.php +++ b/app/Support/Binder/Date.php @@ -70,7 +70,7 @@ class Date implements BinderInterface try { $result = new Carbon($value); } catch (InvalidDateException|InvalidFormatException $e) { - $message = sprintf('Could not parse date "%s" for user #%d: %s', $value, auth()->user()->id, $e->getMessage()); + $message = sprintf('Could not parse date "%s" for user #%d: %s', $value, (int) auth()->user()?->id, $e->getMessage()); Log::error($message); throw new NotFoundHttpException('Could not parse value', $e);