From 468f60da7f13cc3d061c06c0a7b311010a4868cd Mon Sep 17 00:00:00 2001 From: myrmidex Date: Mon, 22 Jun 2026 18:55:02 +0200 Subject: [PATCH] 32 - Expose stateless distribution preview endpoint --- src/ApiResource/ProjectionPreviewOutput.php | 2 +- src/Service/Allocation/Result.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiResource/ProjectionPreviewOutput.php b/src/ApiResource/ProjectionPreviewOutput.php index 81aa1a1..5ee2799 100644 --- a/src/ApiResource/ProjectionPreviewOutput.php +++ b/src/ApiResource/ProjectionPreviewOutput.php @@ -34,7 +34,7 @@ class ProjectionPreviewOutput public int $totalAllocated; - public int $unallocated; + public ?int $unallocated; public function __construct(Result $result) { diff --git a/src/Service/Allocation/Result.php b/src/Service/Allocation/Result.php index 6828d2c..eae5f51 100644 --- a/src/Service/Allocation/Result.php +++ b/src/Service/Allocation/Result.php @@ -39,7 +39,7 @@ class Result return $this->totalAllocated; } - public function getUnallocated(): int + public function getUnallocated(): ?int { return $this->unallocated; }