Skip to content

v3.0.0-beta.9

Pre-release
Pre-release

Choose a tag to compare

@sirbrillig sirbrillig released this 21 Apr 15:28
· 2 commits to trunk since this release

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 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-beta.9