| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 110 | public function toArray() |
||
| 111 | { |
||
| 112 | $data = [ |
||
| 113 | 'size' => $this->size, |
||
| 114 | 'baseUrl' => $this->getBaseUrl(), |
||
| 115 | 'options' => $this->getOptions(), |
||
| 116 | ]; |
||
| 117 | if (($plugins = $this->getPlugins())) { |
||
| 118 | $data['plugins'] = $plugins; |
||
| 119 | } |
||
| 120 | |||
| 121 | return parent::toArray() + $data; |
||
| 122 | } |
||
| 123 | } |
||
| 124 |
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..