v2.10.0-beta.1
Pre-release
Pre-release
sirbrillig
released this
10 Nov 22:34
·
12 commits
to 2.10
since this release
Changelog
This is a pretty large release which backports nearly all the improvements that have been made to the 3.0 branch back to the 2.x line, with the major exception of adding phpcsutils as a dependency (which will still be done in 3.0 and will improve accuracy and reduce the amount of code needed by this sniff when it is released).
Notable changes from 2.9 include:
- Support for PHP 7.4 arrow functions. (#179)
- Rewritten and more accurate scope detection.
- Allow undefined variables inside isset and empty (#204)
- Fix error in closures with namespace separators (#197)
- Fix complex default arguments (#198)
- Handle inline if/else (#199)
- Add allowUndefinedVariablesInFileScope option (#193)
- Add allowUnusedVariablesBeforeRequire option (#196)
- Support global scope (#190)
- Add validUndefinedVariableRegexp option (#173) <Rubén Gómez>
- Refactor and clean up reference variables (#187)
- Add special cases for variables used in else blocks (#189)
Changes that this does not include (since they are breaking changes):