You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Magento2.PHP.DateTime.Overcomplicated relies on class name only and does not any additional checks (like instanceof). This causes false-positive findings.
Solution
Remove Magento2.PHP.DateTime.Overcomplicated sniff from Magento Coding Standard.
Implement this check using static tool that can analyze extended class info (PHPStan).
Keep the ticket open to track the rule implementation.
Problem
Magento2.PHP.DateTime.Overcomplicated
relies on class name only and does not any additional checks (likeinstanceof
). This causes false-positive findings.Solution
Remove
Magento2.PHP.DateTime.Overcomplicated
sniff from Magento Coding Standard.Implement this check using static tool that can analyze extended class info (PHPStan).
Keep the ticket open to track the rule implementation.
@paliarush
The text was updated successfully, but these errors were encountered: