mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-07 03:40:50 +00:00
[Php82] Fixtures for skip combination writable + readonly on ReadOnlyClassRector (#2304)
* [Php82] Fixtures for skip combination writable + readonly on ReadOnlyClassRector * more
This commit is contained in:
parent
78aaf7ee0b
commit
f0d68c75a1
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
|
||||
|
||||
final class SkipCombinationWritableReadonly
|
||||
{
|
||||
private readonly string $property;
|
||||
private string $property2;
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
|
||||
|
||||
final class SkipCombinationWritableReadonly
|
||||
{
|
||||
private string $property;
|
||||
public readonly string $property2;
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
|
||||
|
||||
final class SkipCombinationWritableReadonlyPromotion
|
||||
{
|
||||
private string $property;
|
||||
|
||||
public function __construct(private readonly string $property2)
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
|
||||
|
||||
final class SkipCombinationWritableReadonlyPromotion2
|
||||
{
|
||||
private string $property;
|
||||
|
||||
public function __construct(public readonly string $property2)
|
||||
{
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user