-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Php82] Move consume trait property skip check to ReadOnlyClassRector (…
…#3316) * [Php82] Move consume trait property to ReadOnlyClassRector * cs fix * add check property not readonly in trait * [ci-review] Rector Rectify * phsptan * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <action@github.com>
- Loading branch information
1 parent
76a6df8
commit d2080c2
Showing
5 changed files
with
69 additions
and
55 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
.../Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_consume_trait_property.php.inc
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
...tests/Php82/Rector/Class_/ReadOnlyClassRector/Fixture/skip_consume_trait_property.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Fixture; | ||
|
||
use Rector\Tests\Php82\Rector\Class_\ReadOnlyClassRector\Source\SomeTraitWithProperty; | ||
|
||
final class SkipConsumeTraitProperty | ||
{ | ||
use SomeTraitWithProperty; | ||
|
||
public function __construct(private readonly string $name) | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
public function getName() | ||
{ | ||
return $this->name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters