From efb2951436731d3e95be4d63e7b092bb6b181f36 Mon Sep 17 00:00:00 2001 From: Johan Kromhout Date: Wed, 14 May 2025 16:35:21 +0200 Subject: [PATCH] Fix ["JSON property \"expand\" in class \"JiraRestApi\\Issue\\IssueSearchResult\" must not be NULL"] --- src/Issue/IssueSearchResult.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Issue/IssueSearchResult.php b/src/Issue/IssueSearchResult.php index 27b3e9b..9ba8bd4 100644 --- a/src/Issue/IssueSearchResult.php +++ b/src/Issue/IssueSearchResult.php @@ -17,7 +17,7 @@ class IssueSearchResult /** * @var string */ - public $expand; + public ?string $expand = null; /** * @var int @@ -114,17 +114,14 @@ public function getIssue($ndx) } /** - * @return string + * @return ?string */ public function getExpand() { return $this->expand; } - /** - * @param string $expand - */ - public function setExpand($expand) + public function setExpand(?string $expand) { $this->expand = $expand; }