Skip to content

Commit

Permalink
Apply fix from rector
Browse files Browse the repository at this point in the history
  • Loading branch information
fsylum committed Jan 21, 2024
1 parent 2f6aa26 commit d345382
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Rules/MethodCall/RemoveMethodCallRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ public function getRuleDefinition(): RuleDefinition
);
}

private function isObjectTypeMatch(MethodCall $call, string $class): bool
private function isObjectTypeMatch(MethodCall $methodCall, string $class): bool
{
$objectType = new ObjectType($class);

return $this->isObjectType($call->var, $objectType);
return $this->isObjectType($methodCall->var, $objectType);
}
}
4 changes: 2 additions & 2 deletions src/Rules/MethodCall/ReturnFirstArgumentRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public function getRuleDefinition(): RuleDefinition
);
}

private function isObjectTypeMatch(MethodCall $call, string $class): bool
private function isObjectTypeMatch(MethodCall $methodCall, string $class): bool
{
$objectType = new ObjectType($class);

return $this->isObjectType($call->var, $objectType);
return $this->isObjectType($methodCall->var, $objectType);
}
}

0 comments on commit d345382

Please sign in to comment.