Skip to content

Null coalescing operator detected as arithmetic operation #7

@dmolineus

Description

@dmolineus

I'm not sure if it's an issue of phpcq or the php code sniffer. I often run into the issue that the null coalescing operator ?? is detected as arithmetic operation and so the usage of brackets are forced.

The ternary operator ?: instead isn't detected as arithmetic operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions