Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DeadCode] Skip use docblock on BooleanAnd check on RemoveDeadInstanc…
…eOfRector (#5751) * [DeadCode] Skip use docblock on BooleanAnd check on RemoveDeadInstanceOfRector * rename fixture * Fix
- Loading branch information
1 parent
0dd1a43
commit aaf006c
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...Code/Rector/If_/RemoveDeadInstanceOfRector/Fixture/skip_include_and_from_docblock.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,18 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\DeadCode\Rector\If_\RemoveDeadInstanceOfRector\Fixture; | ||
|
||
use PhpParser\Node; | ||
|
||
final class SkipIncludeAndFromDocblock | ||
{ | ||
/** | ||
* @param Node $var | ||
*/ | ||
public function go($var) | ||
{ | ||
if ($var instanceof Node && $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