diff --git a/src/Application/Actions/ActionError.php b/src/Application/Actions/ActionError.php index 798a688f..3a81cc53 100644 --- a/src/Application/Actions/ActionError.php +++ b/src/Application/Actions/ActionError.php @@ -20,9 +20,9 @@ class ActionError implements JsonSerializable private string $type; - private string $description; + private ?string $description; - public function __construct(string $type, ?string $description) + public function __construct(string $type, ?string $description = null) { $this->type = $type; $this->description = $description; @@ -39,7 +39,7 @@ public function setType(string $type): self return $this; } - public function getDescription(): string + public function getDescription(): ?string { return $this->description; }