Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Skip implements interface __construct() on RemoveUnusedPro…
…motedPropertyRector (#5669) * [DeadCode] Skip implements interface __construct() on RemoveUnusedPromotedPropertyRector * fix * fix
- Loading branch information
1 parent
04e62d3
commit 8b1a181
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...od/RemoveUnusedPromotedPropertyRector/Fixture/skip_implements_interface_construct.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\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector\Fixture; | ||
|
||
use Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector\Source\SomeInterfaceWithConstruct; | ||
|
||
final class SkipImplementsInterfaceConstruct implements SomeInterfaceWithConstruct | ||
{ | ||
public function __construct(private string $a, private string $b) | ||
{ | ||
echo $a; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...ctor/ClassMethod/RemoveUnusedPromotedPropertyRector/Source/SomeInterfaceWithConstruct.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\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector\Source; | ||
|
||
interface SomeInterfaceWithConstruct | ||
{ | ||
public function __construct(string $a, string $b); | ||
} |
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