Avoid warning about non-nullable class-property in traits.#5479
Avoid warning about non-nullable class-property in traits.#5479peter17 wants to merge 2 commits into
Conversation
|
You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x. |
ondrejmirtes
left a comment
There was a problem hiding this comment.
The tests are insufficient. You need to use CompositeRule and add ConstantConditionInTraitRule.
The PR that introduced ConstantConditionInTraitHelper does that in all tests for rules it changed.
Also add cases where the rule should and should not report errors. In all rule tests you touched.
|
Hello @ondrejmirtes can you please review again? Thanks! |
|
Hello @ondrejmirtes |
Fixes #14416