Releases: sirbrillig/phpcs-variable-analysis
Releases · sirbrillig/phpcs-variable-analysis
v3.0.0-beta.10
- Restore version and dependabot updates from 2.x branch (711a32c)
Full Changelog: v3.0.0-beta.9...v3.0.0-beta.10
v3.0.0-beta.9
What's Changed
This is preparing for a major 3.0 release which adds a dependency on PHPCSUtils. The new version should have the same functionality, fix some subtle bugs, and increase performance by over 2x.
Dependencies
- Add phpcsutils as a dependency
- Bump minimum phpcs version from 3.5.7 to 3.13.5 (8683965)
Refactoring (using phpcsutils)
- Simplify
getUseIndexForUseImportusingfindContainingOpeningBracket()(948d77f) - Replace
findFunctionCallArgumentscustom loop withPassedParameters::getParameters()(3a0b6e4) - Replace
isConstructorPromotionmanual scan withFunctionDeclarations::getParameters()(5b97e89) - Replace
areAnyConditionsAClassmanual loop withConditions::hasCondition()(f4ac147) - Simplify
getListAssignmentsusingLists::getAssignments(75768da) - Replace
findContainingOpeningBracketwith phpcsutils equivalent (6b1bdda) - Replace
isVariableInsideUnset/isVariableInsideIssetOrEmptywith phpcsutils equivalents (6a30e89) - Simplify arrow function detection by relying on
T_FN(9da451f) - Remove unnecessary
isArrowFunctionblock ingetScopeCloseForScopeOpen(4cc7f35)
Full Changelog: v2.13.0...v3.0.0-beta.9
v2.13.0
What's Changed
- Ruleset: update schema URL by @jrfnl in #353
- Update for phpcs 4.0.0 by @sirbrillig in #356
Full Changelog: v2.12.0...v2.13.0
v2.12.0
What's Changed
- GH Actions: use the xmllint-validate action runner by @jrfnl in #350
- Accept namespaces in sitePassByRefFunctions by @sirbrillig in #351
Full Changelog: v2.11.22...v2.12.0
v2.11.22
What's Changed
- Improve phpstan configuration by @szepeviktor in #344
- Add perf-guard github workflow by @sirbrillig in #345
- Allow finding arrow function variables when arrow function is in file scope by @sirbrillig in #347
New Contributors
- @szepeviktor made their first contribution in #344
Full Changelog: v2.11.21...v2.11.22
v2.11.21
What's Changed
- Only search for nested arrow functions if necessary by @sirbrillig in #342
Full Changelog: v2.11.20...v2.11.21
v2.11.20
What's Changed
- Support nested arrow functions by @sirbrillig in #334
- Simplify detecting class properties to improve detection for anonymous classes by @sirbrillig in #337
- Handle compact inside arrow functions by @sirbrillig in #339
- Support constructor promotion with namespaced and union typehints by @sirbrillig in #333
Minor Changes
- Composer: prevent a lock file from being created by @jrfnl in #326
- Composer: psalm 5 is out of beta by @jrfnl in #327
- Tests: allow for running on PHPUnit 10/11 by @jrfnl in #328
- GH Actions: PHP 8.4 has been released by @jrfnl in #336
- Run static-analysis Github action on PHP 8.1 by @sirbrillig in #338
Full Changelog: v2.11.19...v2.11.20
v2.11.19
v2.11.18
What's Changed
- Switch to PHPCSStandards/PHP_CodeSniffer by @jrfnl in #315
- Make sure that recursive search of list assignments stays inside them by @sirbrillig in #318
- Fix nullable constructor promotion detection by @sirbrillig in #321
Full Changelog: v2.11.17...v2.11.18
v2.11.18-beta.2
Changelog
- Fix nullable constructor promotion detection (#321)