Skip to content

Commit 99daffe

Browse files
committed
fix
1 parent f8170d6 commit 99daffe

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

rules-tests/Renaming/Rector/Cast/RenameCastRector/Fixture/keep_parentheses.php.inc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ namespace Rector\Tests\Renaming\Rector\Cast\RenameCastRector\Fixture;
44

55
final class KeepParentheses
66
{
7-
public function run(float $i): int
7+
public function runInt(float $i): int
8+
{
9+
return (int) ($i * $i);
10+
}
11+
12+
public function runInteger(float $i): int
813
{
914
return (integer) ($i * $i);
1015
}
@@ -18,7 +23,12 @@ namespace Rector\Tests\Renaming\Rector\Cast\RenameCastRector\Fixture;
1823

1924
final class KeepParentheses
2025
{
21-
public function run(float $i): int
26+
public function runInt(float $i): int
27+
{
28+
return (int) ($i * $i);
29+
}
30+
31+
public function runInteger(float $i): int
2232
{
2333
return (int) ($i * $i);
2434
}

0 commit comments

Comments
 (0)