Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.6.3

10 May 15:48
00d3158

Choose a tag to compare

Changelog

v2.6.2 added a regression for PHP 5.6, which was intended to be the minimum version for this package. The composer config incorrectly listed PHP 5.4 as the minimum version, so that has also been updated.

  • Downgrade circleci image to PHP 5.6 (#86)

v2.6.2

23 Apr 16:44
a31046c

Choose a tag to compare

Changelog

  • Allow global var assignment to count as a read #83 (thanks @aeisenberg for finding it!)

v2.6.1

01 Apr 22:54
92047de

Choose a tag to compare

Changelog

  • Improve check for static var defs inside functions (#80) (props @Rolige for finding it)
  • Allow self and static references in trait (#76) (props @Levivb)
  • Add checks for class properties (#77) (props @Levivb for finding it)

v2.6.0

15 Feb 01:44
f72e025

Choose a tag to compare

Changelog

  • Enable allowUnusedForeachVariables and allowUnusedCaughtExceptions (#73)

v2.5.0

08 Feb 21:06
af81d64

Choose a tag to compare

Changelog

  • Add ignore unused foreach option (#66)
  • Allow self within class method closures (#70)
  • Document site pass by ref (#71)
  • Add allowWordPressPassByRefFunctions option (#69)

v2.4.0

03 Jan 20:07
6e022ca

Choose a tag to compare

Changelog

  • Handle variable class static refs (#63)
  • Ignore numeric variables (#61)
  • Make allowUnusedParametersBeforeUsed default to true (#59)

v2.3.0

21 Dec 21:32

Choose a tag to compare

Changelog

  • Add allowUnusedParametersBeforeUsed option (#58)

v2.2.0

26 Nov 17:08

Choose a tag to compare

Changelog

v2.1.3

15 Oct 17:34
25823a9

Choose a tag to compare

Changelog

  • Support shorthand list assignment (#50)
  • Correctly mark pass-by-reference variables in use() constructs (#54)
  • Support anonymous classes (#53)
  • Build: rename the config files (#49)

v2.1.2

08 Sep 21:33
d7652af

Choose a tag to compare

Changelog

  • Remove typehints to support PHP 5 #47