We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e02ad68 commit fde8750Copy full SHA for fde8750
1 file changed
src/modules/Stay/Infrastructure/Integration/StayApi.php
@@ -70,12 +70,12 @@ public function findReservation(string $reservationId): ?ReservationData
70
reservationId: $reservation->uuid->value,
71
guestId: $reservation->guestId,
72
stayId: $reservation->stayId,
73
- stayName: $stay?->name ?? '',
+ stayName: $stay !== null ? $stay->name : '',
74
accountId: $reservation->accountId,
75
checkIn: $checkIn->format('Y-m-d'),
76
checkOut: $checkOut->format('Y-m-d'),
77
nights: $nights,
78
- pricePerNight: $stay?->pricePerNight ?? 0.0,
+ pricePerNight: $stay !== null ? $stay->pricePerNight : 0.0,
79
);
80
}
81
0 commit comments