Skip to content

v3.0.0

Latest

Choose a tag to compare

@sirbrillig sirbrillig released this 01 Aug 20:04
· 2 commits to trunk since this release
282f8a4

What's Changed

This is a large refactor which greatly increases the speed and accuracy of phpcs-variable-analysis by adding a dependency on phpcsutils.

Dependencies

Refactoring (using phpcsutils)

  • Simplify getUseIndexForUseImport using findContainingOpeningBracket() (948d77f)
  • Replace findFunctionCallArguments custom loop with PassedParameters::getParameters() (3a0b6e4)
  • Replace isConstructorPromotion manual scan with FunctionDeclarations::getParameters() (5b97e89)
  • Replace areAnyConditionsAClass manual loop with Conditions::hasCondition() (f4ac147)
  • Simplify getListAssignments using Lists::getAssignments (75768da)
  • Replace findContainingOpeningBracket with phpcsutils equivalent (6b1bdda)
  • Replace isVariableInsideUnset/isVariableInsideIssetOrEmpty with phpcsutils equivalents (6a30e89)
  • Simplify arrow function detection by relying on T_FN (9da451f)
  • Remove unnecessary isArrowFunction block in getScopeCloseForScopeOpen (4cc7f35)

Full Changelog: v2.13.0...v3.0.0