-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trait property visibility in PrivatizeFinalClassPropertyRector (#…
- Loading branch information
1 parent
91f4cae
commit e1f7637
Showing
3 changed files
with
83 additions
and
16 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...ion/Rector/Property/PrivatizeFinalClassPropertyRector/Fixture/skip_trait_reserved.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,12 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector\Fixture; | ||
|
||
use Rector\Tests\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector\Source\SomeTraitWithProtectedProperty; | ||
|
||
final class SkipTraitReserved | ||
{ | ||
use SomeTraitWithProtectedProperty; | ||
|
||
protected $value = 100; | ||
} |
9 changes: 9 additions & 0 deletions
9
...ctor/Property/PrivatizeFinalClassPropertyRector/Source/SomeTraitWithProtectedProperty.php
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,9 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector\Source; | ||
|
||
trait SomeTraitWithProtectedProperty | ||
{ | ||
protected $value; | ||
} |
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