Skip to content

Commit 18f6b3b

Browse files
authored
Add is_object check in IssueService::addAttachments
1 parent 7d58d68 commit 18f6b3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Issue/IssueService.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ public function addAttachments($issueIdOrKey, $filePathArray)
139139
$ret, new \ArrayObject(), '\JiraRestApi\Issue\Attachment'
140140
)
141141
);
142+
} elseif (is_object($ret)) {
143+
array_push($resArr, $this->json_mapper->map(
144+
$ret, new Attachment
145+
)
146+
);
142147
}
143148
}
144149

0 commit comments

Comments
 (0)