Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NodeScopeResolver: Move condition out of loop#4708

Merged
ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
staabm:out-loop
Jan 4, 2026
Merged

NodeScopeResolver: Move condition out of loop#4708
ondrejmirtes merged 1 commit into
phpstan:2.1.xfrom
staabm:out-loop

Conversation

@staabm

@staabm staabm commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines -5771 to -5773
if (!isset($parameters) || $parametersAcceptor === null) {
continue;
}

@staabm staabm Jan 4, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

effectively putting these 3 lines arround the loop instead of beeing the first statement which prevents looping thru all args

@ondrejmirtes ondrejmirtes merged commit b2956fc into phpstan:2.1.x Jan 4, 2026
636 of 644 checks passed
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the out-loop branch January 4, 2026 10:22
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