diff --git a/app/Models/Tip.php b/app/Models/Tip.php index 9185114..663a41a 100644 --- a/app/Models/Tip.php +++ b/app/Models/Tip.php @@ -57,7 +57,7 @@ class Tip extends Model return $this->belongsTo(Author::class, 'author_username', 'username'); } - public function getTweetUrlAttribute(): string|null + public function getTweetUrlAttribute(): string { return "https://twitter.com/{$this->author_username}/status/{$this->tweet_id}"; } diff --git a/app/Twitter/Tweet.php b/app/Twitter/Tweet.php index 2aebc87..a9fce52 100644 --- a/app/Twitter/Tweet.php +++ b/app/Twitter/Tweet.php @@ -12,14 +12,14 @@ class Tweet public string $id; public string $text; public TwitterUser $author; - public string|null $threadId = null; + public ?string $threadId = null; public array $images = []; public function __construct( string $id, string $text, TwitterUser $author, - string|null $threadId = null, + ?string $threadId = null, array $images = [], ) { $this->id = $id;