Skip to content

Commit

Permalink
The state is not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Jun 14, 2024
1 parent a45483a commit aef6aa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Model/UploadOrderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Model/UploadOrderRequestInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit aef6aa7

Please sign in to comment.