Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v2.11.20

01 Dec 22:44
c3780f2
Compare
Choose a tag to compare

What's Changed

  • Support nested arrow functions by @sirbrillig in #334
  • Simplify detecting class properties to improve detection for anonymous classes by @sirbrillig in #337
  • Handle compact inside arrow functions by @sirbrillig in #339
  • Support constructor promotion with namespaced and union typehints by @sirbrillig in #333

Minor Changes

  • Composer: prevent a lock file from being created by @jrfnl in #326
  • Composer: psalm 5 is out of beta by @jrfnl in #327
  • Tests: allow for running on PHPUnit 10/11 by @jrfnl in #328
  • GH Actions: PHP 8.4 has been released by @jrfnl in #336
  • Run static-analysis Github action on PHP 8.1 by @sirbrillig in #338

Full Changelog: v2.11.19...v2.11.20

v2.11.19

26 Jun 20:11
bc8d7e3
Compare
Choose a tag to compare

What's Changed

  • GH Actions: work around intermittent apt-get errors by @jrfnl in #322
  • fix: Process variable before the end of scope by @biinari in #324

New Contributors

Full Changelog: v2.11.18...v2.11.19

v2.11.18

18 Apr 13:39
ca242a0
Compare
Choose a tag to compare

What's Changed

  • Switch to PHPCSStandards/PHP_CodeSniffer by @jrfnl in #315
  • Make sure that recursive search of list assignments stays inside them by @sirbrillig in #318
  • Fix nullable constructor promotion detection by @sirbrillig in #321

Full Changelog: v2.11.17...v2.11.18

v2.11.18-beta.2

13 Apr 16:45
ca242a0
Compare
Choose a tag to compare
v2.11.18-beta.2 Pre-release
Pre-release

Changelog

  • Fix nullable constructor promotion detection (#321)

v2.11.18-beta.1

24 Mar 21:53
c019db0
Compare
Choose a tag to compare
v2.11.18-beta.1 Pre-release
Pre-release

This release is going out as a beta first because I am traveling and if I break something I won't be around to fix it for a while, but it probably will be fine.

Changelog

  • Make sure that recursive search of list assignments stays inside them (#318)
  • A bunch of package updates that shouldn't affect things.

v2.11.17

07 Aug 14:45
3b71162
Compare
Choose a tag to compare

Changelog

  • Do not close scope of ref reassignment when inside else (#306)

v2.11.16

31 Mar 16:47
dc5582d
Compare
Choose a tag to compare

Changelog

Arrow function scope just keeps going.

  • Allow newlines in arrow functions (#301)

v2.11.15

31 Mar 15:28
bdf1e50
Compare
Choose a tag to compare

Changelog

  • Fix scope closer detection in arrow function detection (#298)

v2.11.14

30 Mar 23:13
4cca2aa
Compare
Choose a tag to compare

Changelog

  • Use custom logic for finding arrow function scope (#296)

v2.11.13

30 Mar 21:27
11b9433
Compare
Choose a tag to compare

Changelog

  • Support readonly constructor promotion (#294).