Skip to content

Class constants with an expression as value are flagged #190

@robopzet

Description

@robopzet

PHPMND flags lines that define a class constant with an expression as value. For example:

public const int MINUTE             = 60;

// These are flagged:
public const int DAY                = 24 * self::HOUR;
public const int HOUR               = 60 * self::MINUTE;
public const int WEEK               = 7 * self::DAY;

I could not find an option to suppress warnings for such code. Is that possible?

Thanks for phpmnd!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions