-
-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add boolean and support to RemoveDeadInstanceOfRector (#5748)
* Add fixture to RemoveDeadInstanceOfRector * add boolean and support to RemoveDeadInstanceOfRector
- Loading branch information
1 parent
0c17740
commit da67bb9
Showing
2 changed files
with
83 additions
and
18 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
rules-tests/DeadCode/Rector/If_/RemoveDeadInstanceOfRector/Fixture/include_and.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,33 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\If_\RemoveDeadInstanceOfRector\Fixture; | ||
|
||
use PhpParser\Node; | ||
|
||
final class IncludeAnd | ||
{ | ||
public function go(Node $var) | ||
{ | ||
if ($var instanceof Node && $var->getLine() === 100) { | ||
} | ||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\If_\RemoveDeadInstanceOfRector\Fixture; | ||
|
||
use PhpParser\Node; | ||
|
||
final class IncludeAnd | ||
{ | ||
public function go(Node $var) | ||
{ | ||
if ($var->getLine() === 100) { | ||
} | ||
} | ||
} | ||
|
||
?> |
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