Skip to content

1.0.0-rc1 - 2022-12-27

Pre-release
Pre-release
Compare
Choose a tag to compare
@jrfnl jrfnl released this 27 Dec 16:56
· 366 commits to stable since this release
a98f01e

Added

Tokens

Changed

Utils

  • ObjectDeclarations::getClassProperties(): the array return value will now include 'abstract_token', 'final_token', and 'readonly_token' indexes identifying the stack pointers to these keyword, where applicable. If the keyword is not used, the value will be set to false. #401

Other

  • Various housekeeping and CI maintainance.

Removed

Everything which was previously deprecated in the 1.0.0-alpha4 release, has now been removed. #410

This includes:

  • The PHPCS23Utils standard.
  • Collections class: direct access to the properties in the class.
  • Collections class: the Collections::arrowFunctionTokensBC(), Collections::functionDeclarationTokensBC(), Collections::parameterTypeTokensBC(), Collections::propertyTypeTokensBC() and Collections::returnTypeTokensBC() methods.
  • The ControlStructures::getDeclareScopeOpenClose() method.
  • The FunctionDeclarations::getArrowFunctionOpenClose() method.
  • The FunctionDeclarations::isArrowFunction() method.

See the changelog for the 1.0.0-alpha4 release for details about replacements for the removed functionality.

Fixed

Utils

  • Arrays::getOpenClose(): small efficiency fix. #406
  • ControlStructures::hasBody(): correctly identify that a control structure does not have a body - 'has_body' = false -, when the control structure is ended by a PHP close tag. #403
  • Lists::getOpenClose(): small efficiency fix. #407