We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc4c03 commit b80cf39Copy full SHA for b80cf39
src/Issue/Reporter.php
@@ -24,6 +24,12 @@ class Reporter implements \JsonSerializable
24
25
public function jsonSerialize()
26
{
27
- return array_filter(get_object_vars($this));
+ return array_filter(get_object_vars($this), function ($value, $key) {
28
+ // allow empty assignee. See https://github.com/lesstif/php-jira-rest-client/issues/18
29
+ if ($key === 'name' && !is_null($value)) {
30
+ return true;
31
+ }
32
+ return !empty($value);
33
+ }, ARRAY_FILTER_USE_BOTH);
34
}
35
0 commit comments