| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 134 | function jsonSerialize() | ||
| 135 |     { | ||
| 136 | return [ | ||
| 137 | 'id' => $this->getId() === null ?: $this->getId()->getValue(), | ||
| 138 | 'user_id' => $this->userId->getValue(), | ||
| 139 | 'category_id' => $this->categoryId->getValue(), | ||
| 140 | 'title' => $this->title, | ||
| 141 | 'content' => $this->content | ||
| 142 | ]; | ||
| 143 | } | ||
| 144 | |||
| 163 | } | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.