| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function processNext(EditableFormField $field) |
||
| 26 | { |
||
| 27 | // When ending a group, jump up one level |
||
| 28 | if ($field instanceof EditableFieldGroupEnd) { |
||
| 29 | return $this->getParent(); |
||
|
|
|||
| 30 | } |
||
| 31 | |||
| 32 | // Otherwise behave as per normal composite field |
||
| 33 | return parent::processNext($field); |
||
| 34 | } |
||
| 36 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: