Skip to content

[New Rule] Improper Date/Time handling #70

Closed
@lenaorobei

Description

@lenaorobei

Problem

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.

@paliarush

Metadata

Metadata

Assignees

No one assigned

    Labels

    new ruleNew feature implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions