Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.10.1

12 Dec 18:46
c6716a9

Choose a tag to compare

Changelog

This is just a performance enhancement for certain nested list detection. In at least one example file, this brings the speed from 7 minutes down to 0.3 seconds. 😱

  • Only check one parent for recursive list assignment (#218)

v3.0.0-beta.8

23 Nov 17:45
b77e69e

Choose a tag to compare

v3.0.0-beta.8 Pre-release
Pre-release

Changelog

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

v2.10.0

05 Dec 19:15
5048655

Choose a tag to compare

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):

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

v2.10.0-beta.3

23 Nov 17:46
5048655

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

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

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

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

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

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

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)