Skip to content

Commit 59637de

Browse files
committed
[Php74] Skip used in compact on ClosureArrowFunctionAnalyzer
1 parent 4d3b278 commit 59637de

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php74\Rector\Closure\ClosureToArrowFunctionRector\Fixture;
4+
5+
final class SkipUseCompact
6+
{
7+
public function run(bool $param)
8+
{
9+
$test = 'Super';
10+
11+
$this->myCallback(
12+
function () use ($test) {
13+
return compact('test');
14+
}
15+
);
16+
}
17+
18+
private function myCallback($callback)
19+
{
20+
$callback();
21+
}
22+
}

0 commit comments

Comments
 (0)