-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
Progress: good first issueIssues is easy to get started withIssues is easy to get started withacceptedNew rule is acceptedNew rule is acceptednew ruleNew feature implementationNew feature implementationtechnical guidelinesThe rule is based on Magento Technical GuidelinesThe rule is based on Magento Technical Guidelines
Description
Rule
The use of static
methods is discouraged.
Reason
Source: Magento Technical Guidelines.
Plugins cannot be used with static methods, because static methods cannot be intercepted.
As a result, It hurts extensibility.
Implementation
- Subscribe to the
T_STATIC
token. - If
T_FUNCTION
is found right to it raise a warning.
Metadata
Metadata
Assignees
Labels
Progress: good first issueIssues is easy to get started withIssues is easy to get started withacceptedNew rule is acceptedNew rule is acceptednew ruleNew feature implementationNew feature implementationtechnical guidelinesThe rule is based on Magento Technical GuidelinesThe rule is based on Magento Technical Guidelines