-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector (#…
…5588) * [DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector * [DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector * [ci-review] Rector Rectify * remove super type * more fixture * Fix --------- Co-authored-by: GitHub Action <actions@github.com>
- Loading branch information
1 parent
178ce5c
commit a43f041
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...ests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Fixture/remove_equal_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\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
class RemoveEqualType | ||
{ | ||
/** @var string|false|null */ | ||
private static string|false|null $inputArgSeparator = null; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
class RemoveEqualType | ||
{ | ||
private static string|false|null $inputArgSeparator = null; | ||
} | ||
|
||
?> |
22 changes: 22 additions & 0 deletions
22
...ests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Fixture/remove_super_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\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
class RemoveSuperType | ||
{ | ||
/** @var string|bool|null */ | ||
private static string|false|null $inputArgSeparator = null; | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
class RemoveSuperType | ||
{ | ||
private static string|false|null $inputArgSeparator = null; | ||
} | ||
|
||
?> |
9 changes: 9 additions & 0 deletions
9
rules-tests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Fixture/skip_sub_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,9 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\Property\RemoveUselessVarTagRector\Fixture; | ||
|
||
class SkipSubType | ||
{ | ||
/** @var string|false|null */ | ||
private static string|bool|null $inputArgSeparator = null; | ||
} |
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