Skip to content

Commit da54a57

Browse files
igittigittogeisen
andauthored
upd addIssueLink() to return bool and not null, to reflect result of operation (#414)
Co-authored-by: ogeisen <[email protected]>
1 parent 5411c87 commit da54a57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/IssueLink/IssueLinkService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class IssueLinkService extends \JiraRestApi\JiraClient
1010
* @param IssueLink $issueLink
1111
*
1212
* @throws \JiraRestApi\JiraException
13+
*
14+
* @return bool
1315
*/
1416
public function addIssueLink($issueLink)
1517
{
@@ -22,7 +24,7 @@ public function addIssueLink($issueLink)
2224
$url = $this->uri.'/issueLink';
2325
$type = 'POST';
2426

25-
$this->exec($url, $data, $type);
27+
return $this->exec($url, $data, $type);
2628
}
2729

2830
/**

0 commit comments

Comments
 (0)