-
-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Privatization] Skip method with parent call (#5283)
- Loading branch information
1 parent
72c0216
commit d864d7b
Showing
4 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
.../Rector/ClassMethod/PrivatizeFinalClassMethodRector/Fixture/skip_with_parent_call.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,13 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector\Fixture; | ||
|
||
use Rector\Tests\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector\Source\SomeParentClass; | ||
|
||
final class SkipWithParentCall extends SomeParentClass | ||
{ | ||
protected function someMethod() | ||
{ | ||
parent::someMethod(); | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ivatization/Rector/ClassMethod/PrivatizeFinalClassMethodRector/Source/SomeParentClass.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,8 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector\Source; | ||
|
||
class SomeParentClass | ||
{ | ||
|
||
} |
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