-
-
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.
[CodingStyle] Make MakeInheritedMethodVisibilitySameAsParentRector sk…
…ip magic methods and annotation methods (#137)
- Loading branch information
1 parent
ea1e88f
commit 743738b
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...od/MakeInheritedMethodVisibilitySameAsParentRector/Fixture/skip_method_annotation.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\NoMethodAnnotationHere; | ||
|
||
/** | ||
* @method some() | ||
*/ | ||
final class SkipMethodAnnotation extends NoMethodAnnotationHere | ||
{ | ||
} |
10 changes: 10 additions & 0 deletions
10
...sMethod/MakeInheritedMethodVisibilitySameAsParentRector/Source/NoMethodAnnotationHere.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,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Rector\Tests\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector\Source; | ||
|
||
abstract class NoMethodAnnotationHere | ||
{ | ||
|
||
} |
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