Releases: sirbrillig/phpcs-variable-analysis
Releases · sirbrillig/phpcs-variable-analysis
v2.11.3
v2.11.2
v2.11.1
v2.11.0
v2.10.3-beta.1
v2.10.2
Changelog
- Treat writing to a by-reference foreach loop variable as a read (#221) (props to @MPParsley for finding this bug!)
- Properly detect variables used in quotes inside arrow functions (#222) (props to @ocean90 for finding this bug!)
v2.10.2-beta.1
Changelog
- Treat writing to a by-reference foreach loop variable as a read (#221) (props to @MPParsley for finding this bug!)
- Properly detect variables used in quotes inside arrow functions (#222) (props to @ocean90 for finding this bug!)
v2.10.1
v3.0.0-beta.8
Changelog
- Fix array_walk pass-by-reference in 2.x (#216)
v2.10.0
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:
- Fix array_walk pass-by-reference in 2.x (#216)
- 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):