Skip to content

Commit a13dbf4

Browse files
committed
[DeadCode] Handle multiply to parenthesized on RemoveDeadZeroAndOneOperationRector
1 parent 25e5f0f commit a13dbf4

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Rector\Tests\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector\Fixture;
4+
5+
class WithParentheses
6+
{
7+
public function run()
8+
{
9+
$a = 1 * (2 + 3) * 4;
10+
}
11+
}
12+
13+
?>
14+
-----
15+
<?php
16+
17+
namespace Rector\Tests\DeadCode\Rector\Plus\RemoveDeadZeroAndOneOperationRector\Fixture;
18+
19+
class WithParentheses
20+
{
21+
public function run()
22+
{
23+
$a = (2 + 3) * 4;
24+
}
25+
}
26+
27+
?>

0 commit comments

Comments
 (0)