-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodingStyle] Skip equal modifier on direct parent method compatible …
…on MakeInheritedMethodVisibilitySameAsParentRector (#6406)
- Loading branch information
1 parent
d246d27
commit 2d862a7
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
.../MakeInheritedMethodVisibilitySameAsParentRector/Fixture/skip_equal_direct_parent.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\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector\Fixture; | ||
|
||
use Rector\Tests\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector\Source\Father; | ||
|
||
class SkipEqualDirectParent extends Father | ||
{ | ||
public function run() | ||
{ | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...tyle/Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/Source/Father.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,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector\Source; | ||
|
||
class Father extends GrandFather | ||
{ | ||
public function run() | ||
{ | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...Rector/ClassMethod/MakeInheritedMethodVisibilitySameAsParentRector/Source/GrandFather.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,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector\Source; | ||
|
||
class GrandFather | ||
{ | ||
protected function run() | ||
{ | ||
} | ||
} |
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