| Conditions | 5 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function render() |
||
| 23 | { |
||
| 24 | $formatedSubset = []; |
||
| 25 | |||
| 26 | foreach ($this->criteriaList as $criteria) { |
||
| 27 | $formatedSubset = array_merge($formatedSubset, $criteria->render()); |
||
| 28 | } |
||
| 29 | |||
| 30 | $subset = lcfirst(class_basename(get_class($this))); |
||
| 31 | |||
| 32 | if ($subset === 'series' && (! $this->cascade || starts_with($this->cascade, 'series.'))) { |
||
| 33 | return [$subset => [$formatedSubset]]; |
||
| 34 | } |
||
| 35 | |||
| 36 | return [$subset => $formatedSubset]; |
||
| 37 | } |
||
| 38 | |||
| 46 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..