Skip to content

Conversation

@TomasVotruba
Copy link
Member

No description provided.

Comment on lines +41 to +51
final class SomeClass
{
public function run($value)
{
$this->resolve($value);
}

private function resolve(int $value)
{
}
}
Copy link
Member

@samsonasik samsonasik Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba there is already rule ParamTypeByMethodCallTypeRector for it, see

https://getrector.com/demo/e925c962-1957-42dc-8464-c943e7c2850b

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 I knew we had some similar rule :D . It missed an edge case, I'll check why.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants