Skip to content

Commit

Permalink
🩹 fix php deprecations (#3166)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrisKrisu authored Jan 17, 2025
1 parent 2f34406 commit edb6955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Backend/Support/MentionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit edb6955

Please sign in to comment.