Make mailRecipient optional
This commit is contained in:
parent
a8bdc2c4b2
commit
4ba13a6c42
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -16,5 +16,5 @@ interface Preventable
|
|||
*/
|
||||
public function preventions(): array;
|
||||
|
||||
public function getMailRecipient(): stdClass;
|
||||
public function getMailRecipient(): ?stdClass;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue