mirror of
https://github.com/HDInnovations/UNIT3D.git
synced 2026-01-31 01:35:31 +01:00
fix: chatter types initialize to null
Laravel seems to be accessing the properties even if they're not set. Related: #5021.
This commit is contained in:
@@ -30,19 +30,19 @@ class Chatter implements ShouldBroadcastNow
|
||||
use InteractsWithSockets;
|
||||
use SerializesModels;
|
||||
|
||||
public AnonymousResourceCollection $echoes;
|
||||
public ?AnonymousResourceCollection $echoes = null;
|
||||
|
||||
public ChatMessageResource $message;
|
||||
public ?ChatMessageResource $message = null;
|
||||
|
||||
/**
|
||||
* @var array{
|
||||
* @var null|array{
|
||||
* type: 'bot'|'target',
|
||||
* id: int
|
||||
* }
|
||||
*/
|
||||
public array $ping;
|
||||
public ?array $ping = null;
|
||||
|
||||
public AnonymousResourceCollection $audibles;
|
||||
public ?AnonymousResourceCollection $audibles = null;
|
||||
|
||||
/**
|
||||
* Chatter Constructor.
|
||||
|
||||
Reference in New Issue
Block a user