| Conditions | 4 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 81 | public function toArray(): array |
||
| 82 | { |
||
| 83 | if (null !== $this->lookup && \count($this->terms)) { |
||
| 84 | throw new InvalidException('Unable to build Terms query: only one of terms or lookup properties should be set'); |
||
| 85 | } |
||
| 86 | |||
| 87 | if (null !== $this->lookup) { |
||
| 88 | $this->setParam($this->field, $this->lookup); |
||
| 89 | } else { |
||
| 90 | $this->setParam($this->field, $this->terms); |
||
| 91 | } |
||
| 92 | |||
| 93 | return parent::toArray(); |
||
| 94 | } |
||
| 95 | } |
||
| 96 |
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..