From 83c0eb63c69112453f63ae60024749ff9335b094 Mon Sep 17 00:00:00 2001 From: Yannick Snobbert Date: Tue, 29 Jul 2025 10:30:16 +0200 Subject: [PATCH] fix(openapi): sync typehints between properties and getter/canner for alllowReserved and allowEmptyValue --- src/OpenApi/Model/Parameter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenApi/Model/Parameter.php b/src/OpenApi/Model/Parameter.php index 793e582b438..7272c615b61 100644 --- a/src/OpenApi/Model/Parameter.php +++ b/src/OpenApi/Model/Parameter.php @@ -53,12 +53,12 @@ public function getDeprecated(): bool return $this->deprecated; } - public function canAllowEmptyValue(): bool + public function canAllowEmptyValue(): ?bool { return $this->allowEmptyValue; } - public function getAllowEmptyValue(): bool + public function getAllowEmptyValue(): ?bool { return $this->allowEmptyValue; } @@ -83,12 +83,12 @@ public function getExplode(): bool return $this->explode; } - public function canAllowReserved(): bool + public function canAllowReserved(): ?bool { return $this->allowReserved; } - public function getAllowReserved(): bool + public function getAllowReserved(): ?bool { return $this->allowReserved; }