Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Nov 11, 2025


$right = $node->getArgs()[1]->value;
if (
$right instanceof Node\Expr\FuncCall
Copy link
Contributor Author

Choose a reason for hiding this comment

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

extracted conditions logic into new methods, to ease implementing auto-fixable in a followup

@staabm staabm marked this pull request as ready for review November 11, 2025 06:39
@ondrejmirtes ondrejmirtes merged commit 2fe9fbe into phpstan:2.0.x Nov 11, 2025
70 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the refac branch November 11, 2025 07:55
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.

2 participants