v3.0.0-beta.9
Pre-release
Pre-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
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