Skip to content

Symfony.ControlStructure.YodaConditions.Invalid not working with static class variables #188

Open
@Khartir

Description

@Khartir

Code like the following breaks the sniff, reporting an error either way:

if (foo::$bar === bar::$foo) {

}

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