Skip to content

Commit 9b6e23c

Browse files
committed
add fixture inline as is
1 parent cdabafe commit 9b6e23c

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture;
4+
5+
final class WithAttributeOnPropertyPromotionInline
6+
{
7+
private function __construct(
8+
#[MyAttr]private string $id
9+
){}
10+
}
11+
12+
?>
13+
-----
14+
<?php
15+
16+
namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture;
17+
18+
final class WithAttributeOnPropertyPromotionInline
19+
{
20+
private function __construct(
21+
#[MyAttr]private readonly string $id
22+
){}
23+
}
24+
25+
?>

0 commit comments

Comments
 (0)