From edb69557803e46803e81a984bea4aebd9a690b3d Mon Sep 17 00:00:00 2001 From: Kris Date: Fri, 17 Jan 2025 23:48:45 +0100 Subject: [PATCH] :adhesive_bandage: fix php deprecations (#3166) --- app/Http/Controllers/Backend/Support/MentionHelper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Backend/Support/MentionHelper.php b/app/Http/Controllers/Backend/Support/MentionHelper.php index af648c56e..d9812b0f0 100644 --- a/app/Http/Controllers/Backend/Support/MentionHelper.php +++ b/app/Http/Controllers/Backend/Support/MentionHelper.php @@ -16,7 +16,7 @@ class MentionHelper private Status $status; private bool $isCreating; - public function __construct(Status $status, string $body = null) { + public function __construct(Status $status, ?string $body = null) { $this->status = $status; $status->load('mentions', 'mentions.mentioned'); $this->body = $body ?? $status->body; @@ -46,7 +46,7 @@ public function findUsersInString(): array { return $users; } - public static function createMentions(Status $status, string $string = null): void { + public static function createMentions(Status $status, ?string $string = null): void { $self = new self($status, $string); $self->parseAndCreate(); }