Skip to content

Commit f3458a7

Browse files
committed
fixed #78 Initialise properties errors
1 parent 8d1b3b4 commit f3458a7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Issue/IssueField.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class IssueField implements \JsonSerializable
5050

5151
public ?object $resolution;
5252

53-
public array $fixVersions;
53+
public ?array $fixVersions = null;
5454

5555
public ?Reporter $creator;
5656

@@ -60,8 +60,8 @@ class IssueField implements \JsonSerializable
6060

6161
public ?Reporter $assignee = null;
6262

63-
/** @var \JiraCloud\Issue\Version[] */
64-
public $versions;
63+
/** @var \JiraCloud\Issue\Version[]|null */
64+
public array|null $versions = null;
6565

6666
/** @var \JiraCloud\Issue\Attachment[] */
6767
public $attachment;

src/Issue/RemoteIssueLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class RemoteIssueLink implements \JsonSerializable
88

99
public string $self;
1010

11-
public string $globalId;
11+
public ?string $globalId = null;
1212

1313
public ?array $application;
1414

0 commit comments

Comments
 (0)