Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
1 | <?php |
||
45 | 2 | public function getModifiers() : array |
|
46 | { |
||
47 | 2 | if (null !== $this->sortedDataModifiers) { |
|
48 | 1 | return $this->sortedDataModifiers; |
|
49 | } |
||
50 | |||
51 | 2 | krsort($this->dataModifiers); |
|
52 | 2 | $this->sortedDataModifiers = call_user_func_array('array_merge', $this->dataModifiers); |
|
53 | |||
54 | 2 | return $this->sortedDataModifiers; |
|
55 | } |
||
56 | |||
71 |
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..