From aef6aa7e20b1c4d9d92a2b7fa8d2f85fb8dcc5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Fri, 14 Jun 2024 12:09:46 +0200 Subject: [PATCH] The state is not nullable --- src/Model/UploadOrderRequest.php | 6 +++--- src/Model/UploadOrderRequestInterface.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Model/UploadOrderRequest.php b/src/Model/UploadOrderRequest.php index 9977004..247f242 100644 --- a/src/Model/UploadOrderRequest.php +++ b/src/Model/UploadOrderRequest.php @@ -10,7 +10,7 @@ class UploadOrderRequest implements UploadOrderRequestInterface protected ?int $version = null; - protected ?string $state = null; + protected string $state = self::STATE_PENDING; protected ?OrderInterface $order = null; @@ -29,12 +29,12 @@ public function setVersion(?int $version): void $this->version = $version; } - public function getState(): ?string + public function getState(): string { return $this->state; } - public function setState(?string $state): void + public function setState(string $state): void { $this->state = $state; } diff --git a/src/Model/UploadOrderRequestInterface.php b/src/Model/UploadOrderRequestInterface.php index 299b133..cd320ba 100644 --- a/src/Model/UploadOrderRequestInterface.php +++ b/src/Model/UploadOrderRequestInterface.php @@ -19,7 +19,7 @@ interface UploadOrderRequestInterface extends ResourceInterface, VersionedInterf public function getId(): ?int; - public function getState(): ?string; + public function getState(): string; public function setState(string $state): void;