-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Allow remove useless @var on typed class constant as well …
…on RemoveUselessVarTagRector (#6633) * [DeadCode] Allow remove useless @var on typed class constant as well on RemoveUselessVarTagRector * grammar
- Loading branch information
1 parent
7bbe9ba
commit dfe6f2d
Showing
4 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...sts/DeadCode/Rector/Property/RemoveUselessVarTagRector/Fixture/with_constant_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,24 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
final class WithConstantType | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public const string NAME = 'value'; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
final class WithConstantType | ||
{ | ||
public const string NAME = 'value'; | ||
} | ||
|
||
?> |
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
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
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