Skip to content

1.0.0-alpha2 - 2020-02-16

Pre-release
Pre-release
Compare
Choose a tag to compare
@jrfnl jrfnl released this 16 Feb 07:07
4422f0b

Note: While still in alpha, some BC-breaks may be introduced. These are clearly indicated in the changelog with the ⚠️ symbol.

Added

PHPCS Backcompat

  • BCFile::isReference(): support for arrow functions returning by reference. #77
  • BCFile::getMethodParameters(): support for arrow functions. #77, #79
  • BCFile::getMethodProperties(): support for arrow functions. #77, #79, #89
  • BCFile::getDeclarationName(): allow functions to be called "fn". #77
  • BCFile::findEndOfStatement(): support for arrow functions. #77, #79
  • BCFile::findStartOfStatement(): support for arrow functions. #77

Tokens

Utils

  • Arrays::getDoubleArrowPtr(): support for arrow functions. #77, #79, #84
  • FunctionDeclarations::getParameters(): support for arrow functions. #77, #79
  • FunctionDeclarations::getProperties(): support for arrow functions. #77, #79
  • Operators::isReference(): support for arrow functions returning by reference. #77
  • Parentheses::getOwner(): support for arrow functions. #77
  • Parentheses::isOwnerIn(): support for arrow functions. #77, #79

Other

Changed

PHPCS Backcompat

  • BCFile::getCondition(): sync with PHPCS 3.5.4 - added support for new $first parameter. #73

Tokens

  • The Collections::$returnTypeTokens property now includes T_ARRAY to allow for supporting arrow functions in PHPCS < 3.5.3. #77

Utils

  • ⚠️ Conditions::getCondition(): sync with PHPCS 3.5.4 - renamed the existing $reverse parameter to $first and reversing the meaning of the boolean values, to stay in line with PHPCS itself. #73
  • ⚠️ Numbers: the $unsupportedPHPCSVersions property has been replaced with an UNSUPPORTED_PHPCS_VERSION constant.

Other

  • Various housekeeping.