Skip to content

[type-declaration] Add AddParamTypeFromStrictMethodCallPassRector#7488

Closed
TomasVotruba wants to merge 3 commits intomainfrom
tv-add-closure-type-based-on-functin-pass
Closed

[type-declaration] Add AddParamTypeFromStrictMethodCallPassRector#7488
TomasVotruba wants to merge 3 commits intomainfrom
tv-add-closure-type-based-on-functin-pass

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.

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants