Skip to content

Commit fde8750

Browse files
committed
feat: phpstan error fix
1 parent e02ad68 commit fde8750

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/Stay/Infrastructure/Integration/StayApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ public function findReservation(string $reservationId): ?ReservationData
7070
reservationId: $reservation->uuid->value,
7171
guestId: $reservation->guestId,
7272
stayId: $reservation->stayId,
73-
stayName: $stay?->name ?? '',
73+
stayName: $stay !== null ? $stay->name : '',
7474
accountId: $reservation->accountId,
7575
checkIn: $checkIn->format('Y-m-d'),
7676
checkOut: $checkOut->format('Y-m-d'),
7777
nights: $nights,
78-
pricePerNight: $stay?->pricePerNight ?? 0.0,
78+
pricePerNight: $stay !== null ? $stay->pricePerNight : 0.0,
7979
);
8080
}
8181
}

0 commit comments

Comments
 (0)