Skip to content

Commit b299927

Browse files
authored
Update IssueLink.php (#49)
1 parent ea20fc0 commit b299927

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/IssueLink/IssueLink.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public function setLinkTypeName($typeName)
4545
*/
4646
public function setInwardIssue(string $issueKey): static
4747
{
48-
$this->inwardIssue['key'] = $issueKey;
48+
$this->inwardIssue = new Issue();
49+
$this->inwardIssue->key = $issueKey;
4950

5051
return $this;
5152
}
@@ -57,7 +58,8 @@ public function setInwardIssue(string $issueKey): static
5758
*/
5859
public function setOutwardIssue(string $issueKey): static
5960
{
60-
$this->outwardIssue['key'] = $issueKey;
61+
$this->outwardIssue = new Issue();
62+
$this->outwardIssue->key = $issueKey;
6163

6264
return $this;
6365
}

0 commit comments

Comments
 (0)