Skip to content

1.0.6 - 2023-05-27

Compare
Choose a tag to compare
@jrfnl jrfnl released this 27 May 14:02
· 243 commits to stable since this release
ba259ea

Changed

PHPCS BackCompat

  • BCFile::getClassProperties(): sync with PHPCS 3.8.0 - support for PHP 8.2 readonly classes. #470
  • BCFile::getMethodParameters(): sync with PHPCS 3.8.0 - support for constructor property promotion with readonly properties without explicit visibility. #472

Utils

  • The results of the following methods will now (also) be cached for improved performance when multiple sniffs call these functions for the same token during a PHPCS run. #464, #466
    • FunctionDeclarations::getProperties()
    • Variables::getMemberProperties()
  • Additionally, the results of the UseStatements::splitImportUseStatement() method will be cached more often and the cache checked earlier. #467
  • The return value of the ControlStructures::getCaughtExceptions() method will no longer contain "empty" entries for catch statements without a named exception. It will return an empty array instead. #474

Other

  • Various small housekeeping and maintenance updates.

Fixed

Abstract Sniffs

  • AbstractArrayDeclarationSniff: fixed a potential "Trying to access array offset on value of type bool" PHP notice. #476
  • AbstractArrayDeclarationSniff: the abstract will no longer trigger potentially available magic __get()/__set() etc methods. #477