[New Rule] Getters SHOULD NOT change the state of an object #26
Labels
accepted
New rule is accepted
event: MageTestFest2019
MageTestFest contributions
false positive
Rule causes false positive findings
need to discuss
Rule requires discussion
new rule
New feature implementation
technical guidelines
The rule is based on Magento Technical Guidelines
Rule
Getters SHOULD NOT change the state of an object.
Reason
Source: Magento Technical Guidelines.
Implementation
Check if method name starts with
get
and find class member assignment operation inside this method.The text was updated successfully, but these errors were encountered: