[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:
Abdul Malik Ikhsan 2022-05-12 23:03:54 +07:00 committed by GitHub
parent 78aaf7ee0b
commit f0d68c75a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
final class SkipCombinationWritableReadonly
{
private readonly string $property;
private string $property2;
}

View File

@ -0,0 +1,9 @@
<?php
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture;
final class SkipCombinationWritableReadonly
{
private string $property;
public readonly string $property2;
}

View File

@ -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)
{
}
}

View File

@ -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)
{
}
}