Skip to content

Commit 71527af

Browse files
committed
add usort fixture
1 parent 889df63 commit 71527af

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Rector\Tests\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector\Fixture;
4+
5+
final class MultipleParams
6+
{
7+
public function call($items)
8+
{
9+
usort($items, fn($a, $b) => strcmp($a, $b));
10+
}
11+
}
12+
13+
?>
14+
-----
15+
<?php
16+
17+
namespace Rector\Tests\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector\Fixture;
18+
19+
final class MultipleParams
20+
{
21+
public function call($items)
22+
{
23+
usort($items, strcmp(...));
24+
}
25+
}
26+
27+
?>

0 commit comments

Comments
 (0)