Skip to content

Conversation

@herndlm
Copy link
Contributor

@herndlm herndlm commented May 29, 2022

That rule doesn't deal with constructors and setting them to [] in ClassPropertiesNode::getUninitializedProperties avoids check-overhead in regard to premature access and additional writes of props.

See also #1359

@herndlm herndlm marked this pull request as ready for review May 29, 2022 12:24
@ondrejmirtes ondrejmirtes merged commit 2808dfa into phpstan:1.7.x May 29, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@herndlm herndlm deleted the avoid-checks-via-unused-private-property-rule branch May 29, 2022 13:05
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