diff --git a/src/BusProNet/Model/Booking.php b/src/BusProNet/Model/Booking.php index 732042b2..33c2bdd1 100644 --- a/src/BusProNet/Model/Booking.php +++ b/src/BusProNet/Model/Booking.php @@ -370,6 +370,8 @@ class Booking */ public function isEditable(): bool { - return $this->travelDate > new \DateTimeImmutable() && false === in_array($this->status, ['S', 'U']); + $now = new \DateTimeImmutable(); + + return $this->travelDate > $now && false === in_array($this->status, ['S', 'U']); } }