Skip to content

Commit 5066d72

Browse files
committed
[Php74] Skip closure in attribute on ClosureToArrowFunctionRector
1 parent 6e0809f commit 5066d72

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php74\Rector\Closure\ClosureToArrowFunctionRector\Fixture;
4+
5+
class SkipInsideAttribute
6+
{
7+
#[Idempotency(key: static function(Command $command) : IdempotencyKey {
8+
return new IdempotencyKey(
9+
'key',
10+
);
11+
}, seconds: 604_800)]
12+
public function __invoke(Command $command)
13+
{}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php83\Rector\FuncCall\CombineHostPortLdapUriRector\Fixture;
4+
5+
class DynamicValue
6+
{
7+
public function run($host, $port)
8+
{
9+
$ldapconn = ldap_connect($host, $port);
10+
}
11+
}
12+
13+
?>

0 commit comments

Comments
 (0)