-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Remove union with interface on RemoveUselessParamTagRector…
… to make it consistent (#5794) * [DeadCode] Remove union with interface on RemoveUselessParamTagRector * [ci-review] Rector Rectify --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
8bce424
commit f889e41
Showing
4 changed files
with
70 additions
and
29 deletions.
There are no files selected for viewing
22 changes: 0 additions & 22 deletions
22
...ssMethod/RemoveUselessParamTagRector/Fixture/skip_union_of_interface_with_comment.php.inc
This file was deleted.
Oops, something went wrong.
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
47 changes: 47 additions & 0 deletions
47
...r/ClassMethod/RemoveUselessParamTagRector/Fixture/union_of_interface_with_comment.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,47 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Fixture; | ||
|
||
use Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Source\SomeInterface; | ||
use Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Source\SomeClass; | ||
|
||
class UnionOfInterface { | ||
/** | ||
* Some comment | ||
* | ||
* @param SomeClass|SomeInterface $someInterface | ||
*/ | ||
public function run(SomeInterface $someInterface) | ||
{ | ||
if (method_exists($someInterface, 'run')) { | ||
$someInterface->run(); | ||
} | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Fixture; | ||
|
||
use Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Source\SomeInterface; | ||
use Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector\Source\SomeClass; | ||
|
||
class UnionOfInterface { | ||
/** | ||
* Some comment | ||
*/ | ||
public function run(SomeInterface $someInterface) | ||
{ | ||
if (method_exists($someInterface, 'run')) { | ||
$someInterface->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