Skip to content

Commit 9b22aa5

Browse files
authored
Merge pull request #61 from Dave13h/bug/comment-visibility-not-serializing
Comment Visibility Not Serializing
2 parents cdb72e3 + 23929cc commit 9b22aa5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Issue/Comment.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace JiraRestApi\Issue;
44

5-
class Visibility
5+
class Visibility implements \JsonSerializable
66
{
77
private $type;
88
private $value;
@@ -24,6 +24,11 @@ public function getValue()
2424
{
2525
return $this->value;
2626
}
27+
28+
public function jsonSerialize()
29+
{
30+
return array_filter(get_object_vars($this));
31+
}
2732
}
2833

2934
class Comment implements \JsonSerializable

0 commit comments

Comments
 (0)