Skip to content

Releases: sirbrillig/phpcs-variable-analysis

v3.0.0-beta.10

26 Apr 16:37

Choose a tag to compare

v3.0.0-beta.10 Pre-release
Pre-release
  • Restore version and dependabot updates from 2.x branch (711a32c)

Full Changelog: v3.0.0-beta.9...v3.0.0-beta.10

v3.0.0-beta.9

21 Apr 15:28

Choose a tag to compare

v3.0.0-beta.9 Pre-release
Pre-release

What's Changed

This is preparing for a major 3.0 release which adds a dependency on PHPCSUtils. The new version should have the same functionality, fix some subtle bugs, and increase performance by over 2x.

Dependencies

  • Add phpcsutils as a dependency
  • Bump minimum phpcs version from 3.5.7 to 3.13.5 (8683965)

Refactoring (using phpcsutils)

  • Simplify getUseIndexForUseImport using findContainingOpeningBracket() (948d77f)
  • Replace findFunctionCallArguments custom loop with PassedParameters::getParameters() (3a0b6e4)
  • Replace isConstructorPromotion manual scan with FunctionDeclarations::getParameters() (5b97e89)
  • Replace areAnyConditionsAClass manual loop with Conditions::hasCondition() (f4ac147)
  • Simplify getListAssignments using Lists::getAssignments (75768da)
  • Replace findContainingOpeningBracket with phpcsutils equivalent (6b1bdda)
  • Replace isVariableInsideUnset/isVariableInsideIssetOrEmpty with phpcsutils equivalents (6a30e89)
  • Simplify arrow function detection by relying on T_FN (9da451f)
  • Remove unnecessary isArrowFunction block in getScopeCloseForScopeOpen (4cc7f35)

Full Changelog: v2.13.0...v3.0.0-beta.9

v2.13.0

30 Sep 22:24

Choose a tag to compare

What's Changed

Full Changelog: v2.12.0...v2.13.0

v2.12.0

17 Mar 22:29
4debf53

Choose a tag to compare

What's Changed

  • GH Actions: use the xmllint-validate action runner by @jrfnl in #350
  • Accept namespaces in sitePassByRefFunctions by @sirbrillig in #351

Full Changelog: v2.11.22...v2.12.0

v2.11.22

06 Jan 18:14
ffb6f16

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.11.21...v2.11.22

v2.11.21

02 Dec 16:38
eb2b351

Choose a tag to compare

What's Changed

  • Only search for nested arrow functions if necessary by @sirbrillig in #342

Full Changelog: v2.11.20...v2.11.21

v2.11.20

01 Dec 22:44
c3780f2

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

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

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

Choose a tag to compare

v2.11.18-beta.2 Pre-release
Pre-release

Changelog

  • Fix nullable constructor promotion detection (#321)