Skip to content

Commit 722b0a1

Browse files
committed
Updated Rector to commit 2d8958e855f1d412a280cfeba981c265ca3cae1d
rectorphp/rector-src@2d8958e [DeadCode] Skip pipe operator on RemoveDeadStmtRector (#7941)
1 parent db74d7f commit 722b0a1

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

rules/DeadCode/NodeManipulator/LivingCodeManipulator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use PhpParser\Node\Expr\BinaryOp\Coalesce;
1313
use PhpParser\Node\Expr\BinaryOp\LogicalAnd;
1414
use PhpParser\Node\Expr\BinaryOp\LogicalOr;
15+
use PhpParser\Node\Expr\BinaryOp\Pipe;
1516
use PhpParser\Node\Expr\BitwiseNot;
1617
use PhpParser\Node\Expr\BooleanNot;
1718
use PhpParser\Node\Expr\Cast;
@@ -96,7 +97,7 @@ private function isBinaryOpWithoutChange(Expr $expr): bool
9697
if (!$expr instanceof BinaryOp) {
9798
return \false;
9899
}
99-
return !($expr instanceof LogicalAnd || $expr instanceof BooleanAnd || $expr instanceof LogicalOr || $expr instanceof BooleanOr || $expr instanceof Coalesce);
100+
return !($expr instanceof LogicalAnd || $expr instanceof BooleanAnd || $expr instanceof LogicalOr || $expr instanceof BooleanOr || $expr instanceof Coalesce || $expr instanceof Pipe);
100101
}
101102
/**
102103
* @return Expr[]

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = 'badcffc946057eac210b7bd3c16a4c952721b9be';
22+
public const PACKAGE_VERSION = '2d8958e855f1d412a280cfeba981c265ca3cae1d';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2026-03-28 15:09:27';
27+
public const RELEASE_DATE = '2026-03-28 17:45:30';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)