-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1472 from kukulich/asymetric-visibility
Asymmetric visibility fixes around implicit `public`, `private` and `protected` visibility
- Loading branch information
Showing
8 changed files
with
144 additions
and
38 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace Roave\BetterReflectionTest\Fixture; | ||
|
||
class AsymmetricVisibilityImplicitFinal | ||
{ | ||
public private(set) bool $publicPrivateSetIsFinal = true; | ||
protected private(set) bool $protectedPrivateSetIsFinal = true; | ||
private private(set) bool $privatePrivateSetIsNotFinal = true; | ||
} |
15 changes: 15 additions & 0 deletions
15
test/unit/Fixture/AsymmetricVisibilityImplicitProtectedSet.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,15 @@ | ||
<?php | ||
|
||
namespace Roave\BetterReflectionTest\Fixture; | ||
|
||
class AsymmetricVisibilityImplicitProtectedSet | ||
{ | ||
public public(set) readonly bool $publicPublicSet; | ||
public protected(set) readonly bool $publicProtectedSet; | ||
public private(set) readonly bool $publicPrivateSet; | ||
|
||
protected readonly bool $protected; | ||
private readonly bool $private; | ||
|
||
public readonly bool $publicImplicitProtectedSet; | ||
} |
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