Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
11 | View Code Duplication | public function benchPartial2Args() |
|
12 | { |
||
13 | $fn = partial(function ($x, $y) { |
||
14 | return $x + $y; |
||
15 | }); |
||
16 | |||
17 | $rest = $fn(10); |
||
18 | $rest(50); |
||
19 | } |
||
20 | |||
33 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.