Skip to content

Commit 0ac37d9

Browse files
committed
final touch: handle as Arg
1 parent f90358c commit 0ac37d9

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

  • rules-tests/Php74/Rector/Closure/ClosureToArrowFunctionRector/Fixture
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php74\Rector\Closure\ClosureToArrowFunctionRector\Fixture;
4+
5+
class AsArg
6+
{
7+
public function run()
8+
{
9+
$this->execute(function() {
10+
// some comment
11+
/** @psalm-suppress UndefinedFunction */
12+
return ff();
13+
});
14+
}
15+
}
16+
17+
?>
18+
-----
19+
<?php
20+
21+
namespace Rector\Tests\Php74\Rector\Closure\ClosureToArrowFunctionRector\Fixture;
22+
23+
class AsArg
24+
{
25+
public function run()
26+
{
27+
$this->execute(
28+
// some comment
29+
/** @psalm-suppress UndefinedFunction */
30+
fn() => ff());
31+
}
32+
}
33+
34+
?>

0 commit comments

Comments
 (0)