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:
Roardom
2025-10-07 20:47:08 +00:00
parent 3ddfbc0c0f
commit c3506cd0e2

View File

@@ -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.