djoos / Symfony-coding-standard

Development repository for the Symfony coding standard
MIT License
402 stars 102 forks source link

Bug: false-positive when unary operators are used with $object->property #129

Closed istrof closed 6 years ago

istrof commented 6 years ago

False-positive for:

$foo->bar++

Because bar is parsed as a T_STRING and not T_VARIABLE Additional check for T_OBJECT_OPERATOR (->) covers this case: https://github.com/djoos/Symfony-coding-standard/pull/128