Minor Correction

This commit is contained in:
netkas 2024-10-05 00:49:13 -04:00
parent 5d99aa5e14
commit dba35af7f6

View file

@ -51,7 +51,7 @@
{
return [
'poll_id' => $this->poll_id,
'user' => ($this->user instanceof ObjectTypeInterface) ? $this->user->toArray() : null,
'user' => $this->user?->toArray(),
'option_ids' => $this->option_ids,
];
}