Skip to content

Squiz.Operators.IncrementDecrementUsage.NoBrackets false positive when incrementing properties #1181

@hernst42

Description

@hernst42

The code sniffer reports an error for the first line of the code. The second line of code works:

$id = $id . ($this->i++) . $id; $id = $id . ($this->i++ ) . $id;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions