Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | protected function merge($merge) |
||
34 | { |
||
35 | $value = (object)[]; |
||
36 | |||
37 | foreach ($merge as $object) { |
||
38 | foreach ($object as $key => $value) { |
||
39 | $value->$key = $value; |
||
1 ignored issue
–
show
|
|||
40 | } |
||
41 | } |
||
42 | |||
43 | return $value; |
||
44 | } |
||
45 | } |
||
46 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.