Skip to content

Commit 0c69706

Browse files
ArshidArshid
authored andcommitted
DowngradeFinalPropertyPromotionRector
1 parent 008d166 commit 0c69706

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
namespace Rector\Tests\DowngradeFinalPropertyPromotionRector\Rector\Class_\DowngradePropertyPromotionRector\Fixture;
3+
4+
class ImplicitFinalPropertyPromotion
5+
{
6+
public function __construct(final string $foo)
7+
{
8+
}
9+
}
10+
?>
11+
-----
12+
<?php
13+
namespace Rector\Tests\DowngradeFinalPropertyPromotionRector\Rector\Class_\DowngradePropertyPromotionRector\Fixture;
14+
15+
class ImplicitFinalPropertyPromotion
16+
{
17+
public function __construct(
18+
/**
19+
* @final
20+
*/
21+
public string $foo
22+
)
23+
{
24+
}
25+
}

0 commit comments

Comments
 (0)