Skip to content

Commit 00f2511

Browse files
ArshidArshid
authored andcommitted
FinalPropertyPromotionRector
1 parent 8d837c8 commit 00f2511

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

rules-tests/Php85/Rector/Class_/FinalPropertyPromotionRector/Fixture/skip_anonymous_class.php.inc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,4 @@ $obj = new class {
99
public string $id
1010
){}
1111
};
12-
?>
13-
-----
14-
<?php
15-
declare(strict_types=1);
16-
17-
namespace Rector\Tests\Php85\Rector\Class_\FinalPropertyPromotionRector\Fixture;
18-
19-
$obj = new class {
20-
public function __construct(
21-
final public string $id
22-
){}
23-
};
2412
?>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace Rector\Tests\Issues\AutoImport\Fixture;
4+
5+
use PhpParser\Node;
6+
use PhpParser\Node\Stmt\Class_;
7+
8+
final class SubNamespaceImported
9+
{
10+
11+
/**
12+
* @param Node\Stmt\Class_ $node
13+
*/
14+
public function test(Node $node)
15+
{
16+
}
17+
}
18+
19+
?>

0 commit comments

Comments
 (0)