-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Skip RemoveUselessReturnTagRector on BracketsAwareUnionTyp…
…eNode (#694) * Add failing test fixture for RemoveUselessReturnTagRector # Failing Test for RemoveUselessReturnTagRector Based on https://getrector.org/demo/1ebfe6a8-4b08-6440-8cb6-8bfed0a3a869 * Closes #692 * handle array typed * phpstan * case by case to avoid unwanted behavior Co-authored-by: Jáchym Toušek <enumag@gmail.com>
- Loading branch information
1 parent
401f6b8
commit 2dbf877
Showing
2 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ector/ClassMethod/RemoveUselessReturnTagRector/Fixture/skip_tag_with_generic_type.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,22 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector\Fixture; | ||
|
||
use Ds\Vector; | ||
use IteratorAggregate; | ||
|
||
/** | ||
* @template TValue | ||
* | ||
* @implements IteratorAggregate<int, TValue> | ||
*/ | ||
final class ImmutableVector implements IteratorAggregate | ||
{ | ||
/** | ||
* @return iterable<TValue>|null | ||
*/ | ||
public function getVector(): ?iterable | ||
{ | ||
} | ||
} | ||
?> |
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