Problem/Motivation

When I filed #3350432: SpaceUnaryOperatorSniff does not recognize T_LINE I realized there's more of a problem here: match() will happily fail this too.

Steps to reproduce

https://3v4l.org/a1bVU

Proposed resolution

Give up. Recognizing an unary operator is near impossible using such a simple technique and it'll break as PHP adds more.

Remaining tasks

Remove this sniff.

User interface changes

API changes

Data model changes

Comments

Charlie ChX Negyesi created an issue. See original summary.

ghost of drupal past’s picture

Status: Active » Closed (works as designed)