From 8250a07c027dea3e08313311fdd65b4e6b61cb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Tue, 2 Sep 2025 08:40:17 +0200 Subject: [PATCH] fix: respect environment variable to toggle BPN debug mode --- src/BusProNet/Model/Booking.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']); } }