We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa82d30 commit cd170c4Copy full SHA for cd170c4
src/Entities/Message.php
@@ -48,11 +48,11 @@ protected function getContent($format = 'html'): string
48
*/
49
protected function getParticipant(): ?Participant
50
{
51
- if (is_null($this->participant['participant']))
+ if (is_null($this->participant))
52
53
- $this->attributes['participant'] = model(ParticipantModel::class)->find($this->attributes['participant_id']);
+ $this->participant = model(ParticipantModel::class)->find($this->attributes['participant_id']);
54
}
55
56
- return $this->attributes['participant'];
+ return $this->participant;
57
58
0 commit comments