Releases: sirbrillig/phpcs-variable-analysis
Releases · sirbrillig/phpcs-variable-analysis
v2.8.2
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
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
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
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
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
Changelog
- Consider
get_defined_vars()
to be a read (#92)
- Use static analysis to remove edge case bugs (#94)
v2.6.4
Changelog
- Recognize that variable vars are not assignments (#88)
v2.6.3
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
Changelog
- Allow global var assignment to count as a read #83 (thanks @aeisenberg for finding it!)
v2.6.1
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)