Make mailRecipient optional

This commit is contained in:
philipp lang 2025-05-28 18:46:12 +02:00
parent 027a159a1c
commit 83d721c1ca
3 changed files with 3 additions and 3 deletions

View File

@ -94,7 +94,7 @@ class Participant extends Model implements Preventable
return $this->member?->preventions($this->form->from) ?: [];
}
public function getMailRecipient(): stdClass
public function getMailRecipient(): ?stdClass
{
return $this->getFields()->getMailRecipient();
}

View File

@ -16,5 +16,5 @@ interface Preventable
*/
public function preventions(): array;
public function getMailRecipient(): stdClass;
public function getMailRecipient(): ?stdClass;
}