Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.10.0-beta.3

23 Nov 17:46
5048655
Compare
Choose a tag to compare
v2.10.0-beta.3 Pre-release
Pre-release

Changelog

  • Fix array_walk pass-by-reference in 2.x (#216)

v2.10.0-beta.1

10 Nov 22:34
Compare
Choose a tag to compare
v2.10.0-beta.1 Pre-release
Pre-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):

  • Replace UnusedVariable with UnusedParameter for parameters (#195)
  • Add sniff codes for array assignment shortcut (#205)

v2.9.0

07 Oct 23:38
Compare
Choose a tag to compare

Changelog

This release backports some 3.x features back to the 2.x line.

  • Add allowUnusedVariablesBeforeRequire option (originally #196)
  • Add allowUndefinedVariablesInFileScope option (originally #193)

v3.0.0-beta.7

15 Sep 15:18
22f4228
Compare
Choose a tag to compare
v3.0.0-beta.7 Pre-release
Pre-release

Changelog

  • Allow undefined variables inside isset and empty (#204)
  • Replace UnusedVariable with UnusedParameter for parameters (#195)
  • Add sniff codes for array assignment shortcut (#205)

v3.0.0-beta.6

02 Sep 00:58
81da0cf
Compare
Choose a tag to compare
v3.0.0-beta.6 Pre-release
Pre-release

Changelog

  • Fix performance issues around scope close detection (#200)

v3.0.0-beta.5

24 Aug 23:05
9ef0985
Compare
Choose a tag to compare
v3.0.0-beta.5 Pre-release
Pre-release

Changelog

  • Fix error in closures with namespace separators (#197)
  • Fix complex default arguments (#198)
  • Handle inline if/else (#199)

v3.0.0-beta.4

18 Aug 21:20
3b19ddf
Compare
Choose a tag to compare
v3.0.0-beta.4 Pre-release
Pre-release

Changelog

  • Downgrade requirements from PHP 5.6 to 5.4 (#191)
  • Add validUndefinedVariableRegexp to README (#192)
  • Add allowUndefinedVariablesInFileScope option (#193)
  • Fix example ruleset (#194)
  • Add allowUnusedVariablesBeforeRequire option (#196)

v3.0.0-beta.3

11 Jul 20:57
5620b43
Compare
Choose a tag to compare
v3.0.0-beta.3 Pre-release
Pre-release

Changelog

  • Support global scope (#190)

v2.8.3

11 Jul 23:38
Compare
Choose a tag to compare

Changelog

  • Downgrade requirements from PHP 5.6 to 5.4 #191 (backported to 2.x).

v3.0.0-beta.2

10 Jul 22:03
275cb81
Compare
Choose a tag to compare
v3.0.0-beta.2 Pre-release
Pre-release

Changelog

  • Added property validUndefinedVariableRegexp to VariableAnalysisSniff (#173) <Rubén Gómez>
  • Add arrow function support (#179)
  • Refactor and clean up reference variables (#187)
  • Add special cases for variables used in else blocks (#189)