forked from eatvio/eatvio-infra
meeting the requirements of a static analyzer
This commit is contained in:
@@ -12,15 +12,15 @@ use Livewire\Component;
|
||||
|
||||
class MessageWindow extends Component
|
||||
{
|
||||
public Collection $messages;
|
||||
public array|Collection $messages = [];
|
||||
|
||||
public string $curMessage = '';
|
||||
|
||||
public int $curUserId;
|
||||
|
||||
public int $recipientUserId;
|
||||
public ?int $recipientUserId = null;
|
||||
|
||||
public User $recipientUser;
|
||||
public ?User $recipientUser = null;
|
||||
|
||||
public string $chanId;
|
||||
|
||||
@@ -61,7 +61,7 @@ class MessageWindow extends Component
|
||||
}
|
||||
|
||||
// FIXME
|
||||
public function mount(?int $recipientUserId): void
|
||||
public function mount(?int $recipientUserId = null): void
|
||||
{
|
||||
$this->recipientUserId = $recipientUserId;
|
||||
$this->recipientUser = User::find($recipientUserId);
|
||||
|
||||
Reference in New Issue
Block a user