Coding-standard: ShortList sniff: bug with whitespace

Created on 4 Sep 2018  路  3Comments  路  Source: slevomat/coding-standard

The following code is not transformed correctly:

list ($class, $method) = ...

the list() is written as list (), but the result still has this whitespace at the beginning.
screenshot from 2018-09-04 11-14-06

It should be without leading space. So all tokens from list to beginning of the ( should be removed IMO.

Bug

Most helpful comment

All 3 comments

Are you able to tag a release here please? We need the fix to not mess up the indentation on list () ones.
Thank you.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings