Skip to content

Commit b40dbd6

Browse files
authored
Merge pull request #59 from say1hello/master
Add is_object check in IssueService::addAttachments
2 parents 5618a7e + a4df067 commit b40dbd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Issue/IssueService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function addAttachments($issueIdOrKey, $filePathArray)
143143
$ret, new \ArrayObject(), '\JiraRestApi\Issue\Attachment'
144144
)
145145
);
146-
} else {
146+
} elseif (is_object($ret)) {
147147
array_push($resArr, $this->json_mapper->map(
148148
$ret, new Attachment
149149
)

0 commit comments

Comments
 (0)