Skip to content

Commit 5e4a11b

Browse files
committed
fix
1 parent 45d9a07 commit 5e4a11b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ private function processBinaryPlusAndMinus(Plus | Minus $binaryOp): ?Expr
176176

177177
private function isMulParenthesized(File $file, Mul $mul): bool
178178
{
179+
if (! $mul->right instanceof BinaryOp) {
180+
return false;
181+
}
182+
179183
$oldTokens = $file->getOldTokens();
180184
$endTokenPost = $mul->getEndTokenPos();
181185

0 commit comments

Comments
 (0)