Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 4, 2026

const args cannot impact the call-site, therefore skip them - except when they are referenced via attributes

@staabm
Copy link
Contributor Author

staabm commented Jan 4, 2026

hmm I don't see a measurable improvement

@staabm staabm marked this pull request as ready for review January 4, 2026 19:55
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes
Copy link
Member

I don't get it, we can't skip those. Let's say someone has a rule for Node\Scalar. This change would mean the rule is stopped being called.

@staabm staabm closed this Jan 4, 2026
@staabm staabm deleted the skip-const branch January 4, 2026 21:24
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.

3 participants