We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8170d6 commit 99daffeCopy full SHA for 99daffe
1 file changed
rules-tests/Renaming/Rector/Cast/RenameCastRector/Fixture/keep_parentheses.php.inc
@@ -4,7 +4,12 @@ namespace Rector\Tests\Renaming\Rector\Cast\RenameCastRector\Fixture;
4
5
final class KeepParentheses
6
{
7
- public function run(float $i): int
+ public function runInt(float $i): int
8
+ {
9
+ return (int) ($i * $i);
10
+ }
11
+
12
+ public function runInteger(float $i): int
13
14
return (integer) ($i * $i);
15
}
@@ -18,7 +23,12 @@ namespace Rector\Tests\Renaming\Rector\Cast\RenameCastRector\Fixture;
18
23
19
24
20
25
21
26
27
28
29
30
31
22
32
33
return (int) ($i * $i);
34
0 commit comments