Skip to content

1.0.2 - 2023-03-28

Compare
Choose a tag to compare
@jrfnl jrfnl released this 28 Mar 17:02
· 301 commits to stable since this release
e74812a

Changed

Tokens

  • The Collections::arrayOpenTokensBC(), Collections::arrayTokensBC(), Collections::listOpenTokensBC(), Collections::listTokensBC(), Collections::shortArrayListOpenTokensBC(), Collections::shortArrayTokensBC() and Collections::shortListTokensBC() token arrays will no longer contain the T_OPEN_SQUARE_BRACKET and/or the T_CLOSE_SQUARE_BRACKET token constants if PHP_CodeSniffer 3.7.2 or higher is used. #444
    An upstream bugfix makes it unnecessary to check those tokens for being a short array or short list.
    Sniff which use these token arrays is combination with using the Arrays/Lists classes, should experience a performance boost on PHPCS 3.7.2+ due to this change.

Other

  • Minor documentation improvements.
  • Various small housekeeping and maintenance updates.

Fixed

Utils

  • The Lists::isShortList() method will now correctly recognize a short list nested in a long list as a short list. #446
    Note: this is a parse error in PHP, but the method should still handle this correctly.