Closed guvra closed 5 years ago
@guvra thanks for reporting. You're absolutely right about this rule. Now we are working on consolidated coding standard magento/magento-coding-standard and it doesn't contain this rule.
We are working on investigation more appropriate tool for such kind of checks.
Closing this issue because this repo now contains sniffs for Magento 1.x code only. Please refer to magento/magento-coding-standard for Magento 2.x coding standard.
This rule was removed in magento/magento-coding-standard in order to eliminate false-positive findings.
The MEQP2 ruleset doesn't detect proxies that are declared in di.xml files. This results in false positives when proxies are declared using this convention.
Affected rule: Rule: MEQP2.Classes.MutableObjects.MutableObjects
Sample di.xml file:
Sample code:
Expected result: No warning.
Actual result: