Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.11.5

14 Aug 01:48
567221e
Compare
Choose a tag to compare

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

21 Jul 20:38
e9c99cd
Compare
Choose a tag to compare

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

21 Feb 17:03
c921498
Compare
Choose a tag to compare

Changelog

  • Update for Composer 2.2 (#242)

v2.11.2

06 Jul 23:46
3fad284
Compare
Choose a tag to compare

Changelog

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

v2.11.1

18 Jun 20:58
9df9ade
Compare
Choose a tag to compare

Changelog

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

v2.11.0

15 Mar 19:22
e76e816
Compare
Choose a tag to compare

Changelog

  • Start inline block scope at end of condition rather than at keyword (#230)
  • Add allowUnusedVariablesInFileScope option (#229)

v2.10.3-beta.1

09 Mar 22:33
e76e816
Compare
Choose a tag to compare
v2.10.3-beta.1 Pre-release
Pre-release

Changelog

  • Start inline block scope at end of condition rather than at keyword (#230)
  • Add allowUnusedVariablesInFileScope option (#229)

v2.10.2

18 Jan 16:24
0775e0c
Compare
Choose a tag to compare

Changelog

  • Treat writing to a by-reference foreach loop variable as a read (#221) (props to @MPParsley for finding this bug!)
  • Properly detect variables used in quotes inside arrow functions (#222) (props to @ocean90 for finding this bug!)

v2.10.2-beta.1

30 Dec 23:11
6a0b28f
Compare
Choose a tag to compare
v2.10.2-beta.1 Pre-release
Pre-release

Changelog

  • Treat writing to a by-reference foreach loop variable as a read (#221) (props to @MPParsley for finding this bug!)
  • Properly detect variables used in quotes inside arrow functions (#222) (props to @ocean90 for finding this bug!)

v2.10.1

12 Dec 18:46
c6716a9
Compare
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)