Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.8.2

31 May 16:55
Compare
Choose a tag to compare

Changelog

This is a backport of the bugfixes from 3.0.0-beta.1 into the 2.x version without any of the PHPCSUtils changes.

  • Fix comment tolerance for many sniffs (huge props to @jrfnl)
  • Clean up package structure (@jrfnl also, for the most part)
  • Only allow unused values in associative foreach loops with option (#167)
  • Fix unused-before-used detection (#171)

v2.8.2-beta.1

25 May 17:08
Compare
Choose a tag to compare
v2.8.2-beta.1 Pre-release
Pre-release

Changelog

This is a backport of the bugfixes in 3.0.0-beta.1 into the 2.x version without any of the PHPCSUtils changes. Because of the nature of a backport, this is a test release to make sure everything works properly before I do a proper release of 2.8.2.

  • Fix comment tolerance for many sniffs (huge props to @jrfnl)
  • Clean up package structure (@jrfnl also, for the most part)
  • Only allow unused values in associative foreach loops with option (#167)
  • Fix unused-before-used detection (#171)

v3.0.0-beta.1

12 May 16:23
ad1b668
Compare
Choose a tag to compare
v3.0.0-beta.1 Pre-release
Pre-release

Changelog

This is a beta release of 3.0. The breaking change is that we now require an external library which is installed by composer. Before release we'll need to update the documentation about how to do a stand-alone install (see #160) and ideally add support for PHP 7.4 (see #165).

v2.8.1

11 Feb 22:19
5be26b4
Compare
Choose a tag to compare

Changelog

This is a small bug fix release with a bunch of test and package clean-up from brave contributors @jrfnl and @alexpott. Thanks, friends! ❤️

  • Make assignment of a reference variable be considered a use (#128)
  • Bug fix: false negative unused var (#120)
  • PHPStan: document run parameters in project ruleset (#122)
  • Composer: update PHPCS Composer plugin dependency (#121)
  • Bug fix: $this in nested function declaration (#119)
  • Documentation: minor fixes (#123)
  • Remove stray composer.lock file (#117)
  • Tests: simplify the PHPCS setup method [1] (#115)
  • Composer: make the PHPUnit requirements more flexible (#114)
  • Tests: allow them to work cross-platform (#108)
  • Composer: update DealerDirect Composer plugin requirement (#112)
  • PHPCS: document run parameters in project ruleset (#107)
  • PHPUnit config: add testsuite name (#113)
  • Bug fix: recognize use of self/static within anonymous class (#110)
  • Composer: move PHPCS dependency to require (#106)

v2.8.0

21 Nov 16:51
Compare
Choose a tag to compare

Changelog

  • Add apcu_* functions to getPassByReferenceFunctions (#103)
  • Tests: Make sure fixtures are valid php
  • Add sniff codes to README (#100)
  • Mention phpcs-changed in README (#97)
  • Update README to include phpstan and linting (#96)
  • Refactor methods to have nullable return types (#95)

v2.7.0

25 Jun 00:02
1b1b2b5
Compare
Choose a tag to compare

Changelog

  • Consider get_defined_vars() to be a read (#92)
  • Use static analysis to remove edge case bugs (#94)

v2.6.4

10 May 21:10
fd217f2
Compare
Choose a tag to compare

Changelog

  • Recognize that variable vars are not assignments (#88)

v2.6.3

10 May 15:48
00d3158
Compare
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
Compare
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
Compare
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)