Skip to content

Commit

Permalink
Change ReservationShareMail property name
Browse files Browse the repository at this point in the history
It conflicts with the now protected email property
  • Loading branch information
Gerd Katzenbeisser committed Sep 29, 2024
1 parent d9d46d5 commit 6059360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Email/Messages/ReservationShareEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ReservationShareEmail extends ReservationEmailMessage
/**
* @var string
*/
private $email;
private $emailToShare;

public function __construct(User $reservationOwner, $emailToShare, ReservationSeries $reservationSeries, IAttributeRepository $attributeRepository, IUserRepository $userRepository)
{
Expand All @@ -16,12 +16,12 @@ public function __construct(User $reservationOwner, $emailToShare, ReservationSe
$this->reservationOwner = $reservationOwner;
$this->reservationSeries = $reservationSeries;
$this->timezone = $reservationOwner->Timezone();
$this->email = $emailToShare;
$this->emailToShare = $emailToShare;
}

public function To()
{
return [new EmailAddress($this->email)];
return [new EmailAddress($this->emailToShare)];
}

public function Subject()
Expand Down

0 comments on commit 6059360

Please sign in to comment.