Skip to content

Commit fbace7b

Browse files
committed
Update Reporter.php
Should have done this check and not return a blank array
1 parent b774a7a commit fbace7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Issue/Reporter.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public function jsonSerialize()
3232
unset($vars[$key]);
3333
}
3434
}
35-
return $vars;
35+
if(empty($vars)) {
36+
return null;
37+
}
38+
return $vars;
3639
}
3740
}

0 commit comments

Comments
 (0)