Skip to content

Commit 8873cdc

Browse files
committed
Fix
1 parent 236ad64 commit 8873cdc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Diff for: tests/PHPStan/Rules/DeadCode/CallToMethodStatementWithoutImpurePointsRuleTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ public function testRule(): void
5050
],
5151
[
5252
'Call to method CallToMethodWithoutImpurePoints\y::myFinalBaseFunc() on a separate line has no effect.',
53-
62,
53+
61,
5454
],
5555
[
5656
'Call to method CallToMethodWithoutImpurePoints\AbstractFoo::myFunc() on a separate line has no effect.',
57-
140,
57+
139,
5858
],
5959
[
6060
'Call to method CallToMethodWithoutImpurePoints\CallsPrivateMethodWithoutImpurePoints::doBar() on a separate line has no effect.',
61-
148,
61+
147,
6262
],
6363
]);
6464
}

Diff for: tests/PHPStan/Rules/DeadCode/data/call-to-method-without-impure-points.php

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function (): void {
4242
};
4343

4444
function (y $xy, finalX $finalX): void {
45-
$xy = new y();
4645
if (rand(0,1)) {
4746
$xy = $finalX;
4847
}

0 commit comments

Comments
 (0)