Phpcs Variable Analysis Versions Save

Find undefined and unused variables with the PHP Codesniffer static analysis tool.

v2.11.10

1 year ago

Changelog

  • Composer: allow for the 1.0.0 version of the Composer PHPCS plugin (#287)

v2.11.9

1 year ago

Changelog

  • Prevent detecting static closures when looking for static variables (#281)

v2.11.8

1 year ago

Changelog

  • Fix function call detection to exclude non-function tokens (#279)

v2.11.7

1 year ago

Changelog

Another bug fix for a static variable regression caused by https://github.com/sirbrillig/phpcs-variable-analysis/pull/267.

  • Place static arrow function body outside of scope on static declaration check (#276) Props @arkener!

v2.11.6

1 year ago

Changelog

This is a bug fix release for two regressions caused by the new static function variable scanning added in #267.

  • Ignore function call arguments on static declarations processing (#273) props @arkener!
  • Fix scanning for static variables near start of file (#274)

v2.11.5

1 year ago

Changelog

  • Allow for loop increment expression to use variable defined inside loop (#262)
  • Support constructor promotion (#266)
  • Improve static declaration checks (#267)
  • Handle inline if list destructure (#268)
  • Remove php_errormsg from superglobals list (#269)
  • Ignore unused parameters when function in abstract class is empty (#270)

v2.11.4

1 year ago

Changelog

Mostly a bunch of housekeeping changes internal to the codebase, but this does include a fix for a deprecation notice in PHP 8.2.

v2.11.3

2 years ago

Changelog

  • Update for Composer 2.2 (#242)

v2.11.2

2 years ago

Changelog

  • Respect ignoring undefined variables in else blocks (#239)

v2.11.1

2 years ago

Changelog

  • Allow parsing mixed HTML and PHP (#234 and #236)
  • Ignore double assignment by reference if second is inside condition (#235)