Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 11 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
21 | View Code Duplication | public function benchNative2Args() |
|
22 | { |
||
23 | $fn = function ($x) { |
||
24 | return function ($y) use ($x) { |
||
25 | return $x + $y; |
||
26 | }; |
||
27 | }; |
||
28 | |||
29 | $rest = $fn(10); |
||
30 | $rest(50); |
||
31 | } |
||
32 | } |
||
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.