Skip to content

Squiz.WhiteSpace.OperatorSpacingSniff doesn't detect negative numbers correctly #429

Closed
@Konafets

Description

@Konafets

The sniff doesn't check the right withespace. The following code doesn't raise an error. I would expect that there is no whitespace allowed after the minus operator.

$y = - 10 + 2;

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