From b82f089bf4d3847bfcfaa8dbdf74c3baaf321c15 Mon Sep 17 00:00:00 2001 From: joeydehaas Date: Tue, 3 Feb 2026 21:27:58 +0100 Subject: [PATCH] make redirects nullable --- src/Entity/Checkout.php | 6 +++--- src/Entity/CheckoutInternal.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Entity/Checkout.php b/src/Entity/Checkout.php index 188837c..e6adaf1 100644 --- a/src/Entity/Checkout.php +++ b/src/Entity/Checkout.php @@ -14,7 +14,7 @@ class Checkout extends AbstractEntity protected bool $allowEmptyRelations; protected int $id; - protected bool $hasRedirects; + protected ?bool $hasRedirects; protected bool $isActive; protected bool $isBlueprint; protected bool $isExpired; @@ -43,12 +43,12 @@ public function id(): int return $this->id; } - public function hasRedirects(): bool + public function hasRedirects(): ?bool { return $this->hasRedirects; } - public function setHasRedirects(bool $hasRedirects): self + public function setHasRedirects(?bool $hasRedirects): self { $this->hasRedirects = $hasRedirects; diff --git a/src/Entity/CheckoutInternal.php b/src/Entity/CheckoutInternal.php index 93151f0..93585ee 100644 --- a/src/Entity/CheckoutInternal.php +++ b/src/Entity/CheckoutInternal.php @@ -71,7 +71,7 @@ public function setDeletedAt(?DateTimeImmutable $deletedAt): self /** * @internal */ - public function setHasRedirects(bool $hasRedirects): self + public function setHasRedirects(?bool $hasRedirects): self { $this->hasRedirects = $hasRedirects;