Releases: PHPCSStandards/PHPCSUtils
Releases · PHPCSStandards/PHPCSUtils
1.0.9 - 2023-12-08
Added
PHPCS BackCompat
BCFile::getMemberProperties(): sync with PHPCS 3.8.0 - support for PHP 8.2truetype. #524BCFile::getMethodProperties(): sync with PHPCS 3.8.0 - support for PHP 8.2truetype. #524BCFile::getMethodParameters(): sync with PHPCS 3.8.0 - support for PHP 8.2truetype. #524
Changed
TestUtils
- Significant performance improvement for the
UtilityMethodTestCase. #525
Other
- Dropped support for PHP_CodeSniffer < 3.8.0. #523
Please ensure you runcomposer update phpcsstandards/phpcsutils --with-dependenciesto benefit from this. - Small improvements to the documentation website generation. Includes a contribution from @fredden.
- Various housekeeping and documentation improvements. Includes a contribution from @fredden.
1.0.8 - 2023-07-17
Changed
PHPCS BackCompat
BCFile::getDeclarationName(): sync with PHPCS 3.8.0 - support for functions calledself,parentorstaticwhich return by reference. #494
Other
- Various housekeeping and minor documentation improvements.
Fixed
Fixers
- The
SpacesFixerwill no longer throw an (incorrect) exception when the second pointer passed is a comment token and this comment token is the last content in a file. #493
1.0.7 - 2023-07-10
Changed
Other
- Various housekeeping and maintenance updates, including making the test suite compatible with PHPUnit 10.
Fixed
Utils
- The
Arrays::getDoubleArrowPtr()method could previously get confused over a double arrow in a keyed list used as an array value. #485
1.0.6 - 2023-05-27
Changed
PHPCS BackCompat
BCFile::getClassProperties(): sync with PHPCS 3.8.0 - support for PHP 8.2readonlyclasses. #470BCFile::getMethodParameters(): sync with PHPCS 3.8.0 - support for constructor property promotion withreadonlyproperties 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
1.0.5 - 2023-04-17
Fixed
Utils
- The
Lists::getAssignments()method could previously get confused over exotic list keys. Fixed now. #459
1.0.4 - 2023-04-15
Changed
Other
- Minor documentation improvements.
Fixed
Utils
- The
FunctionDeclarations::getParameters()method will now correctly handle constructor promoted properties withreadonly, but without explicit visibility set. #456
1.0.3 - 2023-04-13
Changed
Other
- Various small housekeeping and maintenance updates.
Fixed
Utils
- The
PassedParametersclass now allows for function calls to global functions calledself(),parent()orstatic(). #452
1.0.2 - 2023-03-28
Changed
Tokens
- The
Collections::arrayOpenTokensBC(),Collections::arrayTokensBC(),Collections::listOpenTokensBC(),Collections::listTokensBC(),Collections::shortArrayListOpenTokensBC(),Collections::shortArrayTokensBC()andCollections::shortListTokensBC()token arrays will no longer contain theT_OPEN_SQUARE_BRACKETand/or theT_CLOSE_SQUARE_BRACKETtoken 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 theArrays/Listsclasses, 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.
1.0.1 - 2023-01-05
Changed
Other
- Composer: The version requirements for the Composer PHPCS plugin have been widened to allow for version 1.0.0. #428
Please ensure you runcomposer update phpcsstandards/phpcsutils --with-dependenciesto benefit from this. - Removed the references to pre-1.0.0 QA releases from the docs. #425
- Various small housekeeping and maintainance updates. Thanks @szepeviktor for contributing.
1.0.0 - 2023-01-04
For the full list of features, please see the changelogs of the alpha/rc releases:
Changed
Other
- Minor documentation improvements.
- Maintainability improvements.